diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2023-08-21 07:50:54 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-08-21 07:50:54 +0000 |
| commit | ca4cf76cc378eeb68d8bf660ad2e10b0b72ddb96 (patch) | |
| tree | 4564ca566d739eb4a9386f2baa41c82ce4f63be7 /lib | |
| parent | bee4cb149ca14fe4f13b1a09ef8b6cb97ea8e0c9 (diff) | |
Resolve "Blubber: memory size exhausted bei zu vielen Notifications"
Closes #2475
Merge request studip/studip!1981
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/models/PersonalNotifications.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/PersonalNotifications.class.php b/lib/models/PersonalNotifications.class.php index dbdb266..9218bc0 100644 --- a/lib/models/PersonalNotifications.class.php +++ b/lib/models/PersonalNotifications.class.php @@ -371,7 +371,7 @@ class PersonalNotifications extends SimpleORMap if (!$user_id) { $user_id = $GLOBALS['user']->id; } - return UserConfig::get($user_id)->getValue("PERSONAL_NOTIFICATIONS_DEACTIVATED") ? false : true; + return (new UserConfig($user_id))->getValue('PERSONAL_NOTIFICATIONS_DEACTIVATED') ? false : true; } /** |
