Not every exif driver requrires a params array
authorMichael Rubinsky <mrubinsk@yosemite.localdomain>
Mon, 21 Sep 2009 02:38:01 +0000 (22:38 -0400)
committerMichael Rubinsky <mrubinsk@yosemite.localdomain>
Mon, 21 Sep 2009 02:38:01 +0000 (22:38 -0400)
ansel/lib/Image.php

index d179552..a2dcf54 100644 (file)
@@ -566,7 +566,7 @@ class Ansel_Image
         if (is_a($imageFile, 'PEAR_Error')) {
             return $imageFile;
         }
-        $exif = Horde_Image_Exif::factory($GLOBALS['conf']['exif']['driver'], $GLOBALS['conf']['exif']['params']);
+        $exif = Horde_Image_Exif::factory($GLOBALS['conf']['exif']['driver'], !empty($GLOBALS['conf']['exif']['params']) ? $GLOBALS['conf']['exif']['params'] : array());
         $exif_fields = $exif->getData($imageFile);
 
         /* Flag to determine if we need to resave the image data */