From 5db1724a0503e4aff45e4af7a53096340ee0de63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=A9niz?= Date: Fri, 19 Aug 2022 13:14:36 +0100 Subject: [PATCH] MDL-79681 user: fix conditional to get the last access to a course --- user/classes/output/participants_filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/classes/output/participants_filter.php b/user/classes/output/participants_filter.php index c04fd771e55..0ceb9fe4ab2 100644 --- a/user/classes/output/participants_filter.php +++ b/user/classes/output/participants_filter.php @@ -229,7 +229,7 @@ class participants_filter extends \core\output\datafilter { // Get minimum lastaccess for this course and display a dropbox to filter by lastaccess going back this far. // We need to make it diferently for normal courses and site course. - if (!$this->course->id == SITEID) { + if (!($this->course->id == SITEID)) { // Regular course. $params = [ 'courseid' => $this->course->id,