Skip to content

Commit

Permalink
Check === 'natural' was inadvertently removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Gunawan committed Aug 14, 2015
1 parent 2eafcc0 commit 80f6a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Hash.php
Expand Up @@ -892,7 +892,7 @@ public static function sort(array $data, $path, $dir = 'asc', $type = 'regular')
$type = strtolower($type);
}

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
if ($type === 'natural' && version_compare(PHP_VERSION, '5.4.0', '<')) {
$type = 'regular';
}

Expand Down

0 comments on commit 80f6a97

Please sign in to comment.