mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 09:32:43 +00:00
Merge branch 'master' into 2.5
This commit is contained in:
commit
c2b8778ce8
29 changed files with 150 additions and 29 deletions
|
@ -126,7 +126,7 @@ class Hash {
|
|||
if ($conditions) {
|
||||
$filter = array();
|
||||
foreach ($next as $item) {
|
||||
if (self::_matches($item, $conditions)) {
|
||||
if (is_array($item) && self::_matches($item, $conditions)) {
|
||||
$filter[] = $item;
|
||||
}
|
||||
}
|
||||
|
@ -667,9 +667,7 @@ class Hash {
|
|||
if (empty($data)) {
|
||||
return false;
|
||||
}
|
||||
$values = array_values($data);
|
||||
$str = implode('', $values);
|
||||
return (bool)ctype_digit($str);
|
||||
return $data === array_filter($data, 'is_numeric');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue