aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo
diff options
context:
space:
mode:
Diffstat (limited to 'include/photo')
-rw-r--r--include/photo/photo_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index 0b691b457..522e638de 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -142,7 +142,7 @@ function guess_image_type($filename, $data = '') {
if(is_null($type) && strpos($filename, 'http') === 0) {
$size = getimagesize($filename);
- if (array_key_exists($size['mime'], $types))
+ if ($size && array_key_exists($size['mime'], $types))
$type = $size['mime'];
}