From 057eb805d979181d9e706d3c1ccab650a561c0d2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 3 Mar 2009 18:25:48 +0000 Subject: [PATCH] error management --- htdocs/admin/modules.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);