diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php index 28bab82071e..681ede25112 100644 --- a/htdocs/societe/admin/societe.php +++ b/htdocs/societe/admin/societe.php @@ -235,7 +235,7 @@ $var = true; foreach ($conf->file->dol_document_root as $dirroot) { $dir = $dirroot . "/core/modules/societe/"; - $handle = opendir($dir); + $handle = @opendir($dir); if (is_resource($handle)) { // Loop on each module find in opened directory @@ -312,7 +312,7 @@ $var = true; foreach ($conf->file->dol_document_root as $dirroot) { $dir = $dirroot . "/core/modules/societe/"; - $handle = opendir($dir); + $handle = @opendir($dir); if (is_resource($handle)) { while (($file = readdir($handle))!==false)