aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-01-15 13:23:28 +0100
committerMario Vavti <mario@mariovavti.com>2017-01-15 13:23:28 +0100
commita36d74dad5dbc080007ba85d841ee0f74c9c919d (patch)
tree1bf8b894c36d26256be31ff0bafa8b96f2045e4d /include/photo
parente843d27f8c4cd3ecabc3598a92db0c814f4d0ed7 (diff)
downloadvolse-hubzilla-a36d74dad5dbc080007ba85d841ee0f74c9c919d.tar.gz
volse-hubzilla-a36d74dad5dbc080007ba85d841ee0f74c9c919d.tar.bz2
volse-hubzilla-a36d74dad5dbc080007ba85d841ee0f74c9c919d.zip
do not choke if photo_factory() returns null
Diffstat (limited to 'include/photo')
-rw-r--r--include/photo/photo_driver.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index af4fd0a30..c8b3c3782 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -11,8 +11,10 @@ function photo_factory($data, $type = null) {
'image/svg+xml'
);
- if($type && in_array(strtolower($type),$unsupported_types))
+ if($type && in_array(strtolower($type),$unsupported_types)) {
+ logger('photo_factory: unsupported image type');
return null;
+ }
$ignore_imagick = get_config('system', 'ignore_imagick');