diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-11-05 08:15:17 +0000 |
---|---|---|
committer | root <root@ops.vz.lan> | 2012-11-05 08:15:22 +0000 |
commit | af8e7c0340839db0d24b7d6fc61899d950ea341f (patch) | |
tree | bd841d92986632407a520b2a3b325f81e23af1b4 /lib | |
parent | 2ca39d79862f86065cd2675eab3b795cc8e02411 (diff) | |
download | elgg-af8e7c0340839db0d24b7d6fc61899d950ea341f.tar.gz elgg-af8e7c0340839db0d24b7d6fc61899d950ea341f.tar.bz2 |
avoid a warning.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exif.php | 2 |
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)) { |