Skip to content

Commit

Permalink
enrol MDL-25522 Fixed up duplicate fields in search_other_users metho…
Browse files Browse the repository at this point in the history
…d that was causing problems in Oracle
  • Loading branch information
Sam Hemelryk committed Jan 6, 2011
1 parent 46f4c39 commit 603087b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions enrol/locallib.php
Expand Up @@ -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
Expand Down

0 comments on commit 603087b

Please sign in to comment.