forked from Wavyzz/dolibarr
Fix warnings
This commit is contained in:
@@ -7123,9 +7123,9 @@ function dol_sort_array(&$array, $index, $order = 'asc', $natsort = 0, $case_sen
|
||||
foreach (array_keys($array) as $key)
|
||||
{
|
||||
if (is_object($array[$key])) {
|
||||
$temp[$key] = $array[$key]->$index;
|
||||
$temp[$key] = empty($array[$key]->$index) ? 0 : $array[$key]->$index;
|
||||
} else {
|
||||
$temp[$key] = $array[$key][$index];
|
||||
$temp[$key] = empty($array[$key][$index]) ? 0 : $array[$key][$index];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user