Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

enrol MDL-25522 Fixed up duplicate fields in search_other_users metho…

…d that was causing problems in Oracle
  • Loading branch information...
commit 603087b87e2ea4f947d065d06c6315dfcaa12ac5 1 parent 46f4c39
@samhemelryk samhemelryk authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  enrol/locallib.php
View
3  enrol/locallib.php
@@ -331,8 +331,7 @@ public function search_other_users($search='', $searchanywhere=false, $page=0, $
}
$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
Please sign in to comment.
Something went wrong with that request. Please try again.