Fix warning
This commit is contained in:
parent
20b5eb15d3
commit
87230795cc
@ -128,7 +128,8 @@ class FormAdvTargetEmailing extends Form
|
||||
$i++;
|
||||
}
|
||||
|
||||
array_multisort($label, SORT_ASC, $countryArray);
|
||||
$array1_sort_order = SORT_ASC;
|
||||
array_multisort($label, $array1_sort_order, $countryArray);
|
||||
|
||||
foreach ($countryArray as $row) {
|
||||
$label = dol_trunc($row['label'], $maxlength, 'middle');
|
||||
|
||||
@ -766,7 +766,8 @@ if ($socid > 0) {
|
||||
$tab_sqlobjOrder[] = $db->jdate($sqlobj->dc);
|
||||
}
|
||||
$db->free($resql2);
|
||||
array_multisort($tab_sqlobjOrder, SORT_DESC, $tab_sqlobj);
|
||||
$array1_sort_order = SORT_DESC;
|
||||
array_multisort($tab_sqlobjOrder, $array1_sort_order, $tab_sqlobj);
|
||||
|
||||
$num = count($tab_sqlobj);
|
||||
if ($num > 0) {
|
||||
@ -926,7 +927,8 @@ if ($socid > 0) {
|
||||
$tab_sqlobjOrder[] = $db->jdate($sqlobj->dc);
|
||||
}
|
||||
$db->free($resql2);
|
||||
array_multisort($tab_sqlobjOrder, SORT_DESC, $tab_sqlobj);
|
||||
$array1_sort_order = SORT_DESC;
|
||||
array_multisort($tab_sqlobjOrder, $array1_sort_order, $tab_sqlobj);
|
||||
|
||||
$num = count($tab_sqlobj);
|
||||
if ($num > 0) {
|
||||
|
||||
@ -920,7 +920,9 @@ class Form
|
||||
}
|
||||
|
||||
if (empty($disablefavorites)) {
|
||||
array_multisort($favorite, SORT_DESC, $label, SORT_ASC, $countryArray);
|
||||
$array1_sort_order = SORT_DESC;
|
||||
$array2_sort_order = SORT_ASC;
|
||||
array_multisort($favorite, $array1_sort_order, $label, $array2_sort_order, $countryArray);
|
||||
} else {
|
||||
$countryArray = dol_sort_array($countryArray, 'label');
|
||||
}
|
||||
|
||||
@ -879,7 +879,8 @@ function print_left_eldy_menu($db, $menu_array_before, $menu_array_after, &$tabM
|
||||
// foreach ($menu_array as $key => $row) {
|
||||
// $position[$key] = $row['position'];
|
||||
// }
|
||||
// array_multisort($position, SORT_ASC, $menu_array);
|
||||
// $array1_sort_order = SORT_ASC;
|
||||
// array_multisort($position, $array1_sort_order, $menu_array);
|
||||
}
|
||||
|
||||
// TODO Use the position property in menu_array to reorder the $menu_array
|
||||
|
||||
@ -2529,7 +2529,8 @@ function printDropdownQuickadd()
|
||||
foreach ($items['items'] as $key => $row) {
|
||||
$position[$key] = $row['position'];
|
||||
}
|
||||
array_multisort($position, SORT_ASC, $items['items']);
|
||||
$array1_sort_order = SORT_ASC;
|
||||
array_multisort($position, $array1_sort_order, $items['items']);
|
||||
}
|
||||
|
||||
foreach ($items['items'] as $item) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user