MDL-13978 fixed code to use new DML syntax

This commit is contained in:
skodak 2008-12-09 22:17:18 +00:00
parent 351d5250c0
commit 67da7e65d2

View File

@ -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);