From 93b4ecb2cd51c1c2e50243bac99162ed58af7ed5 Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Fri, 3 Dec 2010 09:31:31 +0000 Subject: [PATCH] enrol MDL-25522 removed extra redundant definition of field names in query causing oracle issues --- enrol/locallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enrol/locallib.php b/enrol/locallib.php index 4f1669ce7ec..83aebf488d2 100644 --- a/enrol/locallib.php +++ b/enrol/locallib.php @@ -282,9 +282,9 @@ class course_enrolment_manager { } $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