diff --git a/modules/pscleaner/pscleaner.php b/modules/pscleaner/pscleaner.php index aecde311b..7f92c7be9 100644 --- a/modules/pscleaner/pscleaner.php +++ b/modules/pscleaner/pscleaner.php @@ -560,7 +560,7 @@ class PSCleaner extends Module protected static function clearAllCaches() { - $index = file_get_contents(_PS_TMP_IMG_DIR_.'index.php'); + $index = file_exists(_PS_TMP_IMG_DIR_.'index.php') ? file_get_contents(_PS_TMP_IMG_DIR_.'index.php') : ''; Tools::deleteDirectory(_PS_TMP_IMG_DIR_, false); file_put_contents(_PS_TMP_IMG_DIR_.'index.php', $index); Context::getContext()->smarty->clearAllCache();