From a680eb3a73710eb38fc6e77fb79d017f4a20c6a5 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 17 Oct 2012 16:18:36 -0700 Subject: output queue (merges the old deliverq and queue and adds some zotness) --- include/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/Photo.php') diff --git a/include/Photo.php b/include/Photo.php index d5cbb8d24..819f86059 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -622,7 +622,7 @@ function guess_image_type($filename, $fromcurl=false) { } if (is_null($type)){ // Guessing from extension? Isn't that... dangerous? - if(class_exists('Imagick')) { + if(class_exists('Imagick') && file_exists($filename) && is_readable($filename)) { /** * Well, this not much better, * but at least it comes from the data inside the image, -- cgit v1.2.3