aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-07-17 00:51:16 +0000
committerCash Costello <cash.costello@gmail.com>2009-07-17 00:51:16 +0000
commitfba9d91ec8f173f0f3cc939eb70b94530c57151c (patch)
tree3f8dd088cd6440ea05199877edc6204d5378414e /lib
parent19714b046eb9c385a671d1c8f1e8890d694400b7 (diff)
downloadelgg-fba9d91ec8f173f0f3cc939eb70b94530c57151c.tar.gz
elgg-fba9d91ec8f173f0f3cc939eb70b94530c57151c.tar.bz2
check for exif module
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;