diff options
Diffstat (limited to 'lib/exe/fetch.php')
-rw-r--r-- | lib/exe/fetch.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php index c39e21173..9bfb5d1d4 100644 --- a/lib/exe/fetch.php +++ b/lib/exe/fetch.php @@ -245,7 +245,8 @@ function get_cropped($file, $ext, $w, $h=0){ global $conf; if(!$h) $h = $w; - $info = getimagesize($file); //get original size + $info = @getimagesize($file); //get original size + if($info == false) return $file; // that's no image - it's a spaceship! // calculate crop size $fr = $info[0]/$info[1]; |