From 7cf65245906408dfdb004d17359a6c1aaa1f4ef9 Mon Sep 17 00:00:00 2001
From: brendan braybrook <brendan@tucows.com>
Date: Wed, 13 Aug 2014 08:36:58 -0400
Subject: [PATCH] changes suggested by aleks
---
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 9b4981c..565e9db 100644
--- a/program/lib/Roundcube/rcube_image.php
+++ b/program/lib/Roundcube/rcube_image.php
@@ -206,7 +206,7 @@
$image = $new_image;
// fix rotation of image if EXIF data exists and specifies rotation (GD strips the EXIF data)
- if (file_exists($this->image_file) ) {
+ if ($this->image_file && function_exists(exif_read_data) ) {
$exif = exif_read_data($this->image_file);
if ($exif && $exif['Orientation']) {
switch($exif['Orientation']) {
--
Gitblit v1.9.1