Evidently an array type in exif can still be returned as a string...
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Aug 2009 20:22:21 +0000 (16:22 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 13 Aug 2009 20:22:21 +0000 (16:22 -0400)
framework/Image/lib/Horde/Image/Exif/Base.php

index 7fd732c..4cd8a20 100644 (file)
@@ -78,7 +78,9 @@ abstract class Horde_Image_Exif_Base
                 }
 
                 if ($data['type'] == 'array') {
-                    $value = implode(',', $value);
+                    if (is_array($value)) {
+                        $value = implode(',', $value);
+                    }
                 }
                 $results[$field] = $value;
             }