diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php index 26a4a47a7a6..adb16ebda79 100644 --- a/htdocs/user/perms.php +++ b/htdocs/user/perms.php @@ -149,7 +149,7 @@ foreach ($conf->file->dol_document_root as $type => $dirroot) foreach($modulesdir as $dir) { - $handle=opendir($dir); + $handle=@opendir($dir); if (is_resource($handle)) { while (($file = readdir($handle))!==false)