From c6183b649a1f9f7a6fc4849096f5845f03c86bc0 Mon Sep 17 00:00:00 2001
From: brendan braybrook <brendan@tucows.com>
Date: Mon, 11 Aug 2014 19:21:02 -0400
Subject: [PATCH] wrong type returned for gif

---
 program/lib/Roundcube/rcube_image.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/lib/Roundcube/rcube_image.php b/program/lib/Roundcube/rcube_image.php
index a15368a..a432d92 100644
--- a/program/lib/Roundcube/rcube_image.php
+++ b/program/lib/Roundcube/rcube_image.php
@@ -189,7 +189,7 @@
             }
             else if($props['gd_type'] == IMAGETYPE_GIF && function_exists('imagecreatefromgif')) {
                 $image = imagecreatefromgif($this->image_file);
-                $type  = 'gid';
+                $type  = 'gif';
             }
             else if($props['gd_type'] == IMAGETYPE_PNG && function_exists('imagecreatefrompng')) {
                 $image = imagecreatefrompng($this->image_file);

--
Gitblit v1.9.1