getNotificationList() returns an empty array if there are no notifications

This commit is contained in:
Uwe Steinmann 2019-06-24 12:37:25 +02:00
parent ee57a4b25b
commit 8af9d0fc28

View File

@ -43,7 +43,7 @@ class SeedDMS_View_ManageNotify extends SeedDMS_Bootstrap_Style {
$notifications = array();
if ($as_group){
if(!($groups = $this->user->getGroups()))
return NULL;
return array();
foreach ($groups as $group) {
$tmp = $group->getNotifications($folders ? T_FOLDER : T_DOCUMENT);