From 2820314586ae8c95b2ce9b46467361e5e4db5de9 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Fri, 9 Aug 2013 11:40:40 +0200 Subject: [PATCH] [-] MO : fixed potential warning in pscleaner #PSCFV-10070 --- modules/pscleaner/pscleaner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();