Permalink
Browse files

[-] Project: Fix bug when you want to upload (and resize) an image

  • Loading branch information...
1 parent a18eb5b commit 1986ed9fef237ca6825421aeca2f9fb8ddf0c17c @PrestaEdit PrestaEdit committed with Damien Metzger Dec 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 classes/ImageManager.php
@@ -119,6 +119,8 @@ public static function checkImageMemoryLimit($image)
*/
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 (!file_exists($src_file) || !filesize($src_file))
return false;
list($src_width, $src_height, $type) = getimagesize($src_file);

0 comments on commit 1986ed9

Please sign in to comment.