From 118b3038e0602038c22f6e6251a3750fd63d33ae Mon Sep 17 00:00:00 2001 From: Brad Shuttleworth Date: Mon, 29 May 2006 10:05:35 +0000 Subject: [PATCH] KTS-1000: error when transitioning to a state with owner role getting notifications. --- lib/roles/documentroleallocation.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']; } -- libgit2 0.21.4