[-] BO: Fix warning when image is uploaded with PHP < 5.3 #PSCFV-7425

This commit is contained in:
Rémi Gaillard
2013-01-29 11:53:53 +01:00
parent a97843353b
commit 3f8e52d3f8
+4 -1
View File
@@ -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;