diff options
-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)) { |