1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Database verification now runs again directly after applying fixes. Compatibility fix for core_functions.php

This commit is contained in:
Cameron
2018-11-22 13:43:02 -08:00
parent 6367074571
commit 5d27229183
3 changed files with 32 additions and 20 deletions

View File

@@ -372,7 +372,7 @@ if (!function_exists('multiarray_sort'))
* @param $order
* @param $natsort
* @param $case
* @return sorted array.
* @return array sorted array.
*/
function multiarray_sort(&$array, $key, $order = 'asc', $natsort = true, $case = true)
{
@@ -397,15 +397,21 @@ if (!function_exists('multiarray_sort'))
if(!isset($sort_values))
{
return;
return $array;
}
reset ($sort_values);
/*
while (list ($arr_key, $arr_val) = each ($sort_values))
{
$key = is_numeric($arr_key) ? "" : $arr_key; // retain assoc-array keys.
$sorted_arr[$key] = $array[$arr_key];
}*/
foreach($sort_values as $arr_key=>$arr_val)
{
$key = is_numeric($arr_key) ? "" : $arr_key; // retain assoc-array keys.
$sorted_arr[$key] = $array[$arr_key];
}
return $sorted_arr;
}