Fix incorrect argument order.

This commit is contained in:
mark_story 2012-12-07 14:40:27 -05:00
parent 06c3f01af6
commit 6cf6903982

View file

@ -96,7 +96,7 @@ class Hash {
return (array)self::get($data, $path); return (array)self::get($data, $path);
} }
if (strpos('[', $path) === false) { if (strpos($path, '[') === false) {
$tokens = explode('.', $path); $tokens = explode('.', $path);
} else { } else {
$tokens = String::tokenize($path, '.', '[', ']'); $tokens = String::tokenize($path, '.', '[', ']');