1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Reverted pull-request #3642 Fixes #3645

This commit is contained in:
Cameron
2019-01-26 09:01:04 -08:00
parent f42bb9cde1
commit 85d8d6b44a

View File

@@ -410,19 +410,8 @@ if (!function_exists('multiarray_sort'))
foreach($sort_values as $arr_key=>$arr_val)
{
// Issue #3603: multiarray_sort returns only the last array item in case the $arr_key is numeric
// $key = is_numeric($arr_key) ? count($sorted_arr) : $arr_key; // retain assoc-array keys.
// $sorted_arr[$key] = $array[$arr_key];
if (is_numeric($arr_key))
{
$sorted_arr[] = $array[$arr_key];
}
else
{
$sorted_arr[$key] = $array[$arr_key];
}
$key = is_numeric($arr_key) ? "" : $arr_key; // retain assoc-array keys.
$sorted_arr[$key] = $array[$arr_key];
}
return $sorted_arr;
}