Skip to content

Commit

Permalink
Replaced list() assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Dec 3, 2014
1 parent d20f66d commit 70b582b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ protected function normalizeScope($action, $scope)
*/
protected function getBitNumber($action, array $scope)
{
list($bitfield, $actionOffsets, $scopeOffsets) = $this->acl[$action];
$n = (isset($actionOffsets[$action])) ? $actionOffsets[$action] : 0;
$actionOffsets = $this->acl[$action][1];
$scopeOffsets = $this->acl[$action][2];

$n = (isset($actionOffsets[$action])) ? $actionOffsets[$action] : 0;
foreach ($scope as $dimName => $scopeValue)
{
if (isset($scopeOffsets[$dimName][$scopeValue]))
Expand Down

0 comments on commit 70b582b

Please sign in to comment.