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:
MDW 2024-01-10 16:41:39 +01:00 committed by GitHub
parent e9205dcdb1
commit 95da30a224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}