[-] BO : image regeneration now gives a better reporting and crash less #PSCFV-5519

This commit is contained in:
DamienMetzger
2012-11-22 15:15:43 +01:00
parent 6d1b299d05
commit f973d2e3e4
2 changed files with 34 additions and 31 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ class ImageManagerCore
*/
public static function resize($src_file, $dst_file, $dst_width = null, $dst_height = null, $file_type = 'jpg', $force_type = false)
{
if (!file_exists($src_file))
if (!file_exists($src_file) || !filesize($src_file))
return false;
list($src_width, $src_height, $type) = getimagesize($src_file);