diff --git a/src/Core/Users/User.php b/src/Core/Users/User.php index 34dbdb2c0..4a7dbe015 100755 --- a/src/Core/Users/User.php +++ b/src/Core/Users/User.php @@ -466,7 +466,7 @@ class User extends Model */ public function getNewNotificationsCount() { - return $this->getUnreadNotifications()->filter(function($notification) { + return $this->getUnreadNotifications()->filter(function ($notification) { return $notification->time > $this->notifications_read_time ?: 0; })->count(); }