mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-19 05:37:54 +01:00
This commit is contained in:
committed by
Alexander Makarov
parent
1c919a5ac5
commit
8fb5b35cc5
@@ -648,9 +648,9 @@ class BaseArrayHelper
|
||||
throw new InvalidArgumentException('The length of $sortFlag parameter must be the same as that of $keys.');
|
||||
}
|
||||
$args = [];
|
||||
foreach ($keys as $i => $key) {
|
||||
foreach ($keys as $i => $k) {
|
||||
$flag = $sortFlag[$i];
|
||||
$args[] = static::getColumn($array, $key);
|
||||
$args[] = static::getColumn($array, $k);
|
||||
$args[] = $direction[$i];
|
||||
$args[] = $flag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user