Permalink
Browse files

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

…d that was causing problems in Oracle
  • Loading branch information...
1 parent 46f4c39 commit 603087b87e2ea4f947d065d06c6315dfcaa12ac5 Sam Hemelryk committed Jan 6, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 enrol/locallib.php
View
@@ -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

0 comments on commit 603087b

Please sign in to comment.