From d07ce702fe251c817b841199a5979df54cba6dd9 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 9 Feb 2018 11:32:48 +1300 Subject: [PATCH] Revert "Fix #290 correct $where statement." This reverts commit 5218fcddf689e029d96cc6cce375f03118976031. --- locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index 935c775..b56f6c2 100644 --- a/locallib.php +++ b/locallib.php @@ -742,7 +742,7 @@ function attendance_get_users_to_notify($courseids = array(), $orderby = '', $al global $DB; $joingroup = 'LEFT JOIN {groups_members} gm ON (gm.userid = atl.studentid AND gm.groupid = ats.groupid)'; - $where = ' (ats.groupid = 0 or gm.id is NOT NULL)'; + $where = ' AND (ats.groupid = 0 or gm.id is NOT NULL)'; $having = ''; $params = array();