Skip to content
Snippets Groups Projects
Commit 057eb805 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

error management

parent aa439448
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@ foreach ($conf->dol_document_root as $dirroot)
// Load modules attributes in arrays (name, numero, orders) from dir directory
//print $dir."\n<br>";
$handle=opendir($dir);
$handle=@opendir($dir);
if ($handle)
{
while (($file = readdir($handle))!==false)
......@@ -255,6 +255,10 @@ foreach ($conf->dol_document_root as $dirroot)
}
closedir($handle);
}
else
{
dol_syslog("htdocs/admin/modules.php: Failed to open directory ".$dir.". See permission and open_basedir option.", LOG_WARNING);
}
}
asort($orders);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment