From: ethem Date: Thu, 27 Jul 2006 16:11:11 +0000 (+0000) Subject: Merged from 16stable. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9dec3768bcdfe8f7380bdb9feed5edc3ff6f6838;p=moodle.git Merged from 16stable. --- diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php index cf7949c617..ce52e6b1cd 100644 --- a/enrol/authorize/locallib.php +++ b/enrol/authorize/locallib.php @@ -101,10 +101,10 @@ function authorize_print_orders() } if ($userid > 0) { - $where .= "AND (userid = '" . $userid . "') "; + $where .= "AND (E.userid = '" . $userid . "') "; } if ($courseid != SITEID) { - $where .= "AND (courseid = '" . $courseid . "') "; + $where .= "AND (E.courseid = '" . $courseid . "') "; } if ($sort = $table->get_sql_sort()) {