Commit 118b3038e0602038c22f6e6251a3750fd63d33ae

Authored by Brad Shuttleworth
1 parent 4d816c98

KTS-1000: error when transitioning to a state with owner role getting notifications.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5458 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/roles/documentroleallocation.inc.php
@@ -188,7 +188,9 @@ class DocumentRoleAllocation extends KTEntity { @@ -188,7 +188,9 @@ class DocumentRoleAllocation extends KTEntity {
188 188
189 function getGroups() { 189 function getGroups() {
190 $aAllowed = $this->getAllowed(); 190 $aAllowed = $this->getAllowed();
191 - if ($aAllowed['group'] !== null) { 191 + if (is_null($aAllowed['group'])) {
  192 + return array(); // nothing here, move on.
  193 + } else {
192 $aGroups = $aAllowed['group']; 194 $aGroups = $aAllowed['group'];
193 } 195 }
194 196