From d9c8264a7824e4ac77a980d895e2a06af245444c Mon Sep 17 00:00:00 2001 From: Michael Rubinsky Date: Sun, 20 Sep 2009 22:38:01 -0400 Subject: [PATCH] Not every exif driver requrires a params array --- ansel/lib/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansel/lib/Image.php b/ansel/lib/Image.php index d179552de..a2dcf54ce 100644 --- a/ansel/lib/Image.php +++ b/ansel/lib/Image.php @@ -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 */ -- 2.11.0