From 3f8e52d3f87fb0e3f86e9b99141a1b32e6938cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 29 Jan 2013 11:53:53 +0100 Subject: [PATCH] [-] BO: Fix warning when image is uploaded with PHP < 5.3 #PSCFV-7425 --- classes/ImageManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/ImageManager.php b/classes/ImageManager.php index cc89349f8..257c3356c 100644 --- a/classes/ImageManager.php +++ b/classes/ImageManager.php @@ -119,7 +119,10 @@ class ImageManagerCore */ public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false) { - clearstatcache(true, $src_file); + if (PHP_VERSION_ID < 50300) + clearstatcache(); + else + clearstatcache(true, $src_file); if (!file_exists($src_file) || !filesize($src_file)) return false;