From: Michael J. Rubinsky Date: Mon, 3 Aug 2009 23:11:40 +0000 (-0400) Subject: Deal with array types, make sure we start with a positive number here X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=cf19e38da1c2a47f96034c386e4d08f3e5cc0ba7;p=horde.git Deal with array types, make sure we start with a positive number here to avoid double negating the GPS values --- 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; } }