[-] BO : fix #PSCFV-4854

This commit is contained in:
lLefevre
2012-10-10 08:29:00 +00:00
parent 9214b1f356
commit e5c28f0379
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ class ConfigurationTestCore
public static function test_dir($relative_dir, $recursive = false, &$full_report = null)
{
$dir = rtrim(_PS_ROOT_DIR_, '\\/').DIRECTORY_SEPARATOR.trim($relative_dir, '\\/');
if (!file_exists($dir) || !$dh = opendir($dir))
if (!file_exists($dir) || !$dh = @opendir($dir))
{
$full_report = sprintf('Directory %s does not exists or is not writable', $dir); // sprintf for future translation
return false;