mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-13978 fixed code to use new DML syntax
This commit is contained in:
parent
351d5250c0
commit
67da7e65d2
@ -146,7 +146,7 @@
|
||||
// get list of courses containing modules if required
|
||||
elseif (!empty($modulelist) and confirm_sesskey()) {
|
||||
$modulename = $modulelist;
|
||||
$sql = "SELECT DISTINCT c.id FROM {$CFG->prefix}".$modulelist." module, {$CFG->prefix}course c"
|
||||
$sql = "SELECT DISTINCT c.id FROM {".$modulelist."} module, {course} c"
|
||||
." WHERE module.course=c.id";
|
||||
|
||||
$courseids = $DB->get_records_sql($sql);
|
||||
|
Loading…
x
Reference in New Issue
Block a user