Skip to content

Commit

Permalink
Fix incorrect argument order.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 7, 2012
1 parent 06c3f01 commit 6cf6903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Hash.php
Expand Up @@ -96,7 +96,7 @@ public static function extract(array $data, $path) {
return (array)self::get($data, $path);
}

if (strpos('[', $path) === false) {
if (strpos($path, '[') === false) {
$tokens = explode('.', $path);
} else {
$tokens = String::tokenize($path, '.', '[', ']');
Expand Down

0 comments on commit 6cf6903

Please sign in to comment.