Fix: files.lib.php - Add optional sort parameter to array_multisort for static tool check (#27340)
# Fix: files.lib.php - Add optional sort parameter to array_multisort for static tool check Phan flags the call to array_multisort as suspicious - adding the optional sort parameter avoids this.
This commit is contained in:
parent
e9205dcdb1
commit
95da30a224
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ function dol_dir_list_in_database($path, $filter = "", $excludefilter = null, $s
|
|||
}
|
||||
// Sort the data
|
||||
if ($sortorder) {
|
||||
array_multisort($myarray, $sortorder, $file_list);
|
||||
array_multisort($myarray, $sortorder, SORT_REGULAR, $file_list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue