Skip to content
Browse files

Select records as tablename.fieldname when joining tables.

Someone, can add  these fields userid,courseid to course table . :)
  • Loading branch information...
1 parent fe2bc06 commit dd241f341a7a7218c9254948e4684e7f2cdbdead ethem committed Jul 27, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/authorize/locallib.php
View
4 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()) {

0 comments on commit dd241f3

Please sign in to comment.
Something went wrong with that request. Please try again.