make sure to trim the UserComment field before checking if it's empty.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 1 Aug 2009 21:48:50 +0000 (17:48 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 1 Aug 2009 21:48:50 +0000 (17:48 -0400)
framework/Image/lib/Horde/Image/Exif.php

index 4e5f53c..ed8cab0 100644 (file)
@@ -407,7 +407,7 @@ class Horde_Image_Exif
             //       here and let the calling code deal with it, or allow this
             //       method to take an optional charset to convert to (would
             //       introduce a dependency on Horde_String to do the conversion).
-            $data = trim(substr($data, 7));
+            $data = trim(substr($data, 7))  ;
 
         default:
             return !empty($data) ? $data : '---';