mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-41436 modinfo: Concatenate SQL fields instead of passing array
This commit is contained in:
parent
6b909c759d
commit
de170aacda
@ -606,7 +606,7 @@ class course_modinfo {
|
||||
foreach (self::$cachedfields as $key) {
|
||||
if (!isset($course->$key)) {
|
||||
$course = $DB->get_record('course', array('id' => $course->id),
|
||||
array_merge(array('id'), self::$cachedfields), MUST_EXIST);
|
||||
implode(',', array_merge(array('id'), self::$cachedfields)), MUST_EXIST);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user