Select records as tablename.fieldname when joining tables.
Someone, can add these fields userid,courseid to course table . :)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user