From: Michael Rubinsky Date: Mon, 21 Sep 2009 02:38:01 +0000 (-0400) Subject: Not every exif driver requrires a params array X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d9c8264a7824e4ac77a980d895e2a06af245444c;p=horde.git Not every exif driver requrires a params array --- 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 */