summaryrefslogtreecommitdiffstats
path: root/3.patch
blob: 9187080dd19a8cea21e31d2523f4244783ab14c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 5cbb8d0ab64912e56f3152d3b296eef3627e95c6 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 17 Oct 2019 12:53:28 +0200
Subject: [PATCH] Fix Array and string offset access syntax with curly braces
 is deprecated

---
 lib/Horde/Image/Exif/Parser/Gps.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Horde/Image/Exif/Parser/Gps.php b/lib/Horde/Image/Exif/Parser/Gps.php
index 1b90d94..4357255 100644
--- a/lib/Horde/Image/Exif/Parser/Gps.php
+++ b/lib/Horde/Image/Exif/Parser/Gps.php
@@ -152,7 +152,7 @@ protected function _formatData($type, $tag, $intel, $data)
         case 'ASCII':
             // Latitude Reference, Longitude Reference
             if ($tag == '0001' || $tag == '0003') {
-                $data = ($data{1} == $data{2} && $data{1} == $data{3}) ? $data{0} : $data;
+                $data = ($data[1] == $data[2] && $data[1] == $data[3]) ? $data[0] : $data;
             }
             break;