mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
installation MDL-19984 fix SQL error during upgrade process
This commit is contained in:
parent
81f79f8982
commit
ca8874dcee
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user