aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo/photo_driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/photo/photo_driver.php')
-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');