diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index d55274a31d6..5f292511960 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -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
"; - $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);