Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update src/BjyAuthorize/Provider/Role/ZendDb.php #35

Merged
merged 1 commit into from

2 participants

@messyOne

Adding to avoid the PHP Notice "Undefined index: in [...]/bjyoungblood/bjy-authorize/src/BjyAuthorize/Provider/Role/ZendDb.php on line 55" if no parent role exists.

@messyOne messyOne Update src/BjyAuthorize/Provider/Role/ZendDb.php
Adding to avoid the PHP Notice "Undefined index:  in [...]/bjyoungblood/bjy-authorize/src/BjyAuthorize/Provider/Role/ZendDb.php on line 55"
df00825
@bjyoungblood bjyoungblood merged commit 372e72f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 10, 2012
  1. @messyOne

    Update src/BjyAuthorize/Provider/Role/ZendDb.php

    messyOne authored
    Adding to avoid the PHP Notice "Undefined index:  in [...]/bjyoungblood/bjy-authorize/src/BjyAuthorize/Provider/Role/ZendDb.php on line 55"
This page is out of date. Refresh to see the latest.
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()]);
}
}
Something went wrong with that request. Please try again.