MDL-79716 mod_assign: Use $DB->record_exists_select()

This commit is contained in:
Jun Pataleta
2024-07-03 13:46:40 +08:00
parent 83184bce49
commit 23cafba5e6
+1 -1
View File
@@ -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',