aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/exif.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/exif.php b/lib/exif.php
index 2bc25c996..5343044ea 100644
--- a/lib/exif.php
+++ b/lib/exif.php
@@ -1,6 +1,11 @@
<?php
function td_get_exif($file) {
+
+ // catch for those who don't have exif module loaded
+ if (!is_callable('exif_read_data'))
+ return;
+
$mime = $file->mimetype;
if ($mime != 'image/jpeg' && $mime != 'image/pjpeg')
return;