Permalink
Browse files

enrol MDL-25522 removed extra redundant definition of field names in …

…query causing oracle issues
  • Loading branch information...
1 parent de2d81f commit 93b4ecb2cd51c1c2e50243bac99162ed58af7ed5 @nebgor nebgor committed Dec 3, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/locallib.php
View
@@ -282,9 +282,9 @@ public function get_potential_users($enrolid, $search='', $searchanywhere=false,
}
$wherecondition = implode(' AND ', $tests);
- $ufields = user_picture::fields('u');
+ $ufields = user_picture::fields('u', array('username', 'lastaccess'));
- $fields = 'SELECT u.id, u.firstname, u.lastname, u.username, u.email, u.lastaccess, u.picture, u.imagealt, '.$ufields;
+ $fields = 'SELECT '.$ufields;
$countfields = 'SELECT COUNT(1)';
$sql = " FROM {user} u
WHERE $wherecondition

0 comments on commit 93b4ecb

Please sign in to comment.