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

This commit is contained in:
PrestaEdit
2012-12-30 20:14:51 +01:00
parent f5d4fbccfd
commit 80f3012345
+2
View File
@@ -119,6 +119,8 @@ 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 (!file_exists($src_file) || !filesize($src_file))
return false;
list($src_width, $src_height, $type) = getimagesize($src_file);