Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #35 from messyOne/patch-1

Update src/BjyAuthorize/Provider/Role/ZendDb.php
  • Loading branch information...
commit 372e72fa729bb07457fc531a0fd4ee2d16c3e59e 2 parents 91fe03e + df00825
@bjyoungblood authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/BjyAuthorize/Provider/Role/ZendDb.php
View
2  src/BjyAuthorize/Provider/Role/ZendDb.php
@@ -51,7 +51,7 @@ public function getRoles()
// Pass Two: Re-inject parent objects to preserve hierarchy
foreach ($roles as $roleId=>$roleObj) {
$parentRoleObj = $roleObj->getParent();
- if ($parentRoleObj) {
+ if ($parentRoleObj && $parentRoleObj->getRoleId()) {
$roleObj->setParent($roles[$parentRoleObj->getRoleId()]);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.