From ca4cf76cc378eeb68d8bf660ad2e10b0b72ddb96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20Sch=C3=BCttl=C3=B6ffel?=
 <schuettloeffel@zqs.uni-hannover.de>
Date: Mon, 21 Aug 2023 07:50:54 +0000
Subject: [PATCH] Resolve "Blubber: memory size exhausted bei zu vielen
 Notifications"

Closes #2475

Merge request studip/studip!1981
---
 lib/models/PersonalNotifications.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/models/PersonalNotifications.class.php b/lib/models/PersonalNotifications.class.php
index dbdb266ecdd..9218bc0bb68 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;
     }
 
     /**
-- 
GitLab