From dd241f341a7a7218c9254948e4684e7f2cdbdead Mon Sep 17 00:00:00 2001 From: ethem Date: Thu, 27 Jul 2006 11:23:25 +0000 Subject: [PATCH] Select records as tablename.fieldname when joining tables. Someone, can add these fields userid,courseid to course table . :) --- enrol/authorize/locallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php index cf7949c6173..ce52e6b1cd0 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()) {