From 23cafba5e68a9c7de96d509fd6e8a7bc6b672995 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Wed, 3 Jul 2024 13:46:40 +0800 Subject: [PATCH] MDL-79716 mod_assign: Use $DB->record_exists_select() --- mod/assign/classes/notification_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assign/classes/notification_helper.php b/mod/assign/classes/notification_helper.php index 80c78519f5d..04b10a64904 100644 --- a/mod/assign/classes/notification_helper.php +++ b/mod/assign/classes/notification_helper.php @@ -248,7 +248,7 @@ class notification_helper { AND component = :component AND eventtype = :eventtype"; - return $DB->count_records_select('notifications', $sql, [ + return $DB->record_exists_select('notifications', $sql, [ 'userid' => $userid, 'match' => $match, 'component' => 'mod_assign',