From cf19e38da1c2a47f96034c386e4d08f3e5cc0ba7 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 3 Aug 2009 19:11:40 -0400 Subject: [PATCH] Deal with array types, make sure we start with a positive number here to avoid double negating the GPS values --- framework/Image/lib/Horde/Image/Exif/Base.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/framework/Image/lib/Horde/Image/Exif/Base.php b/framework/Image/lib/Horde/Image/Exif/Base.php index 5302385ea..14117e125 100644 --- a/framework/Image/lib/Horde/Image/Exif/Base.php +++ b/framework/Image/lib/Horde/Image/Exif/Base.php @@ -63,7 +63,7 @@ abstract class Horde_Image_Exif_Base $exif[$field . 'Ref'] == 'W' || $exif[$field . 'Ref'] == 'West')) { - $value = '-' . $value; + $value = '-' . abs($value); } } @@ -77,6 +77,9 @@ abstract class Horde_Image_Exif_Base } } + if ($data['type'] == 'array') { + $value = implode(',', $value); + } $results[$field] = $value; } } -- 2.11.0