aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-11-05 08:15:17 +0000
committerroot <root@ops.vz.lan>2012-11-05 08:15:22 +0000
commitaf8e7c0340839db0d24b7d6fc61899d950ea341f (patch)
treebd841d92986632407a520b2a3b325f81e23af1b4
parent2ca39d79862f86065cd2675eab3b795cc8e02411 (diff)
downloadelgg-af8e7c0340839db0d24b7d6fc61899d950ea341f.tar.gz
elgg-af8e7c0340839db0d24b7d6fc61899d950ea341f.tar.bz2
avoid a warning.
-rw-r--r--lib/exif.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exif.php b/lib/exif.php
index 8ca0dde0c..46a73e920 100644
--- a/lib/exif.php
+++ b/lib/exif.php
@@ -24,7 +24,7 @@ function td_get_exif($image) {
$filename = $image->getFilenameOnFilestore();
$exif = exif_read_data($filename, 'IFD0,EXIF', true);
- if (is_array($exif)) {
+ if (is_array($exif) && isset($exif['EXIF'])) {
$data = array_merge($exif['IFD0'], $exif['EXIF']);
foreach ($data as $key => $value) {
if (is_string($value)) {