diff --git a/lib/roles/documentroleallocation.inc.php b/lib/roles/documentroleallocation.inc.php index 3e42e38..519de1c 100644 --- a/lib/roles/documentroleallocation.inc.php +++ b/lib/roles/documentroleallocation.inc.php @@ -188,7 +188,9 @@ class DocumentRoleAllocation extends KTEntity { function getGroups() { $aAllowed = $this->getAllowed(); - if ($aAllowed['group'] !== null) { + if (is_null($aAllowed['group'])) { + return array(); // nothing here, move on. + } else { $aGroups = $aAllowed['group']; }