From 84985f73a3bf27af1bee880767b5e4771583f6f7 Mon Sep 17 00:00:00 2001 From: Quentin Ligier Date: Mon, 18 Apr 2016 10:49:31 +0200 Subject: [PATCH] Fix for bad EXIF data read errors --- php/Modules/Photo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/Modules/Photo.php b/php/Modules/Photo.php index dc4a9c7..8870307 100755 --- a/php/Modules/Photo.php +++ b/php/Modules/Photo.php @@ -741,7 +741,7 @@ final class Photo { $return['focal'] = ''; $return['takestamp'] = 0; $return['lens'] = ''; - $return['tags'] = array(); + $return['tags'] = ''; $return['position'] = ''; $return['latitude'] = ''; $return['longitude'] = ''; @@ -783,7 +783,7 @@ final class Photo { } // Read EXIF - if ($info['mime']=='image/jpeg') $exif = exif_read_data($url, 'EXIF', 0); + if ($info['mime']=='image/jpeg') $exif = @exif_read_data($url, 'EXIF', false, false); else $exif = false; // EXIF Metadata