From af8e7c0340839db0d24b7d6fc61899d950ea341f Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Mon, 5 Nov 2012 08:15:17 +0000 Subject: avoid a warning. --- lib/exif.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/exif.php') 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)) { -- cgit v1.2.3