From 322cd6bb68369ea200dbf62641eef8cf141c5f0a Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 30 Jan 2018 16:54:02 +1300 Subject: [PATCH] Fix #290 correct $where statement. --- locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index 67aa737..811574f 100644 --- a/locallib.php +++ b/locallib.php @@ -735,7 +735,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 = ' AND (ats.groupid = 0 or gm.id is NOT NULL)'; + $where = ' (ats.groupid = 0 or gm.id is NOT NULL)'; $having = ''; $params = array();