error management

This commit is contained in:
Laurent Destailleur 2009-03-03 18:25:48 +00:00
parent aa4394482d
commit 057eb805d9

View File

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