[-] MO : fixed potential warning in pscleaner #PSCFV-10070
This commit is contained in:
1 parent
1183b14ea9
commit
2820314586
1 file changed
+1
-1
@@ -560,7 +560,7 @@ class PSCleaner extends Module
|
|||||||
|
|
||||||
protected static function clearAllCaches()
|
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);
|
Tools::deleteDirectory(_PS_TMP_IMG_DIR_, false);
|
||||||
file_put_contents(_PS_TMP_IMG_DIR_.'index.php', $index);
|
file_put_contents(_PS_TMP_IMG_DIR_.'index.php', $index);
|
||||||
Context::getContext()->smarty->clearAllCache();
|
Context::getContext()->smarty->clearAllCache();
|
||||||
|
|||||||
Reference in new issue
Block a user