From 93bc80ed9c868839d55034d475d712bfeba0aa1d Mon Sep 17 00:00:00 2001 From: "Federico J. Botti" Date: Mon, 26 Mar 2012 00:30:37 -0300 Subject: [PATCH] http://tracker.moodle.org/browse/CONTRIB-3549 --- locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index 6d50955..0f8c108 100644 --- a/locallib.php +++ b/locallib.php @@ -860,7 +860,7 @@ class attforblock { WHERE ue.userid = :uid AND e.status = :estatus AND e.courseid = :courseid - GROUP BY ue.userid"; + GROUP BY ue.userid, ue.status, ue.timestart, ue.timeend"; $params = array('uid' => $userid, 'estatus'=>ENROL_INSTANCE_ENABLED, 'courseid'=>$this->course->id); $enrolmentsparams = $DB->get_record_sql($sql, $params);