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