Skip to content

Commit

Permalink
fixed 34983: Failed test: Voreingestellte Benachrichtigungen über Änd…
Browse files Browse the repository at this point in the history
…erungen für alle Gruppenmitglieder
  • Loading branch information
alex40724 committed Oct 14, 2022
1 parent 071552f commit 35a5a33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Services/Notification/classes/class.ilNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public static function hasNotification(
" AND id = " . $ilDB->quote($id, "integer") .
" AND activated = " . $ilDB->quote(0, "integer"));
$rec = $ilDB->fetchAssoc($set);
// if there is no user record, take the default value
if (!isset($rec["user_id"])) {
return $notification;
}
// ... except when the opted out
return isset($rec["user_id"]) && $rec["user_id"] !== $user_id;
}
Expand Down

0 comments on commit 35a5a33

Please sign in to comment.