Fix Horde_Image usage in imp
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Feb 2010 00:41:47 +0000 (17:41 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Feb 2010 00:41:47 +0000 (17:41 -0700)
imp/lib/Mime/Viewer/Images.php

index 04b29f3..d12763b 100644 (file)
@@ -250,7 +250,7 @@ EOD;
      */
     protected function _getHordeImageOb($load)
     {
-        if (!$GLOBALS['conf']['image']['driver']) {
+        if (empty($GLOBALS['conf']['image']['driver'])) {
             return false;
         }
         $img = null;
@@ -261,7 +261,7 @@ EOD;
                 $context['convert'] = $GLOBALS['conf']['image']['convert'];
                 $context['identify'] = $GLOBALS['conf']['image']['identify'];
             }
-            $img = Horde_Image::factory($GLOBALS['conf']['image']['driver']);
+            $img = Horde_Image::factory($GLOBALS['conf']['image']['driver'], array('context' => $context));
         } catch (Horde_Image_Exception $e) {
             return false;
         }