Skip to content
Snippets Groups Projects
Commit bb35156d authored by llaffont's avatar llaffont
Browse files

Remove PHP warning: sort() expects parameter 1 to be array, null given in...

Remove PHP warning: sort() expects parameter 1 to be array, null given in /var/www/html/vhosts/opac2/www/php/opacce/cosmogramme/php/util_patch_sgbd.php on \
line 54
parent 7cf7538d
Branches
Tags
1 merge request!258Dev/13872 Orphee Allow Hold Available Items
......@@ -43,6 +43,7 @@ $handle = @opendir($path);
if (!$handle)
afficherErreur('Impossible d\'ouvrir le dossier : '.$path, true);
$scripts = [];
while (false !== ($fic = readdir($handle))) {
if (!in_array(extensionForFile($fic), ['.sql', '.php']))
continue;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment