mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #12162 from trenshaw/issue-11827
Fix # 11827: Replace use of each() in DboSource::order for PHP 7.2 compatibility
This commit is contained in:
commit
a68d1fb2ef
1 changed files with 2 additions and 2 deletions
|
@ -3046,12 +3046,12 @@ class DboSource extends DataSource {
|
|||
if (!is_array($keys)) {
|
||||
$keys = array($keys);
|
||||
}
|
||||
|
||||
$keys = array_filter($keys);
|
||||
|
||||
$result = array();
|
||||
while (!empty($keys)) {
|
||||
list($key, $dir) = each($keys);
|
||||
$key = key($keys);
|
||||
$dir = current($keys);
|
||||
array_shift($keys);
|
||||
|
||||
if (is_numeric($key)) {
|
||||
|
|
Loading…
Reference in a new issue