installation MDL-19984 fix SQL error during upgrade process

This commit is contained in:
jerome 2009-08-03 04:02:39 +00:00
parent 81f79f8982
commit ca8874dcee

View File

@ -2441,7 +2441,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
// Find a category to put the courses in:
$categories = $DB->get_records_sql('SELECT * ' .
'FROM {course_categories} ' .
'WHERE name ilike \'misc%\' ' .
'WHERE name like \'misc%\' ' .
'ORDER BY id asc');
if (!empty($categories)) {
$category = array_shift($categories);