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:
Mark Story 2018-06-07 11:06:03 -04:00 committed by GitHub
commit a68d1fb2ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3046,12 +3046,12 @@ class DboSource extends DataSource {
if (!is_array($keys)) { if (!is_array($keys)) {
$keys = array($keys); $keys = array($keys);
} }
$keys = array_filter($keys); $keys = array_filter($keys);
$result = array(); $result = array();
while (!empty($keys)) { while (!empty($keys)) {
list($key, $dir) = each($keys); $key = key($keys);
$dir = current($keys);
array_shift($keys); array_shift($keys);
if (is_numeric($key)) { if (is_numeric($key)) {