diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-07-17 00:51:16 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-07-17 00:51:16 +0000 |
commit | fba9d91ec8f173f0f3cc939eb70b94530c57151c (patch) | |
tree | 3f8dd088cd6440ea05199877edc6204d5378414e /lib/exif.php | |
parent | 19714b046eb9c385a671d1c8f1e8890d694400b7 (diff) | |
download | elgg-fba9d91ec8f173f0f3cc939eb70b94530c57151c.tar.gz elgg-fba9d91ec8f173f0f3cc939eb70b94530c57151c.tar.bz2 |
check for exif module
Diffstat (limited to 'lib/exif.php')
-rw-r--r-- | lib/exif.php | 5 |
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; |