Skip to content

Commit

Permalink
Another small optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 1, 2012
1 parent 7d098fa commit 432d00d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/Cake/Utility/Hash.php
Expand Up @@ -276,15 +276,14 @@ protected static function _simpleOp($op, $data, $path, $values = null) {
} elseif ($op === 'remove') {
if ($i === $last) {
unset($_list[$key]);
} else {
if (!isset($_list[$key])) {
return $data;
}
$_list =& $_list[$key];
return $data;
}
if (!isset($_list[$key])) {
return $data;
}
$_list =& $_list[$key];
}
}
return $data;
}

/**
Expand Down

0 comments on commit 432d00d

Please sign in to comment.