fix CI dolSort() (#39582)

* fix CI dolSort()

* Update functions.lib.php

* Update functions.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Frédéric FRANCE 2026-08-19 00:42:05 +02:00 committed by GitHub
parent e6448ea675
commit 597b91ab65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11606,7 +11606,6 @@ function dol_htmloutput_errors($mesgstring = '', $mesgarray = array(), $keepembe
dol_htmloutput_mesg($mesgstring, $mesgarray, 'error', $keepembedded);
}
/**
* Sort an array using a user defined function. This function is a wrapper to usort without the callable parameter so we can use it into dol_eval().
* This function is not used in Dolibarr code.
@ -11616,7 +11615,8 @@ function dol_htmloutput_errors($mesgstring = '', $mesgarray = array(), $keepembe
*/
function dolSort($arraytosort)
{
return usort($arraytosort);
sort($arraytosort);
return $arraytosort;
}
/**