enrol MDL-25522 Fixed up duplicate fields in search_other_users method that was causing problems in Oracle
This commit is contained in:
+1
-2
@@ -331,8 +331,7 @@ class course_enrolment_manager {
|
||||
}
|
||||
$wherecondition = implode(' AND ', $tests);
|
||||
|
||||
|
||||
$fields = 'SELECT u.id, u.firstname, u.lastname, u.username, u.email, u.lastaccess, u.picture, u.imagealt, '.user_picture::fields('u');;
|
||||
$fields = 'SELECT '.user_picture::fields('u', array('username','lastaccess'));
|
||||
$countfields = 'SELECT COUNT(u.id)';
|
||||
$sql = " FROM {user} u
|
||||
WHERE $wherecondition
|
||||
|
||||
Reference in New Issue
Block a user