summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrendan braybrook <brendan@tucows.com>2014-08-12 18:39:55 +0000
committerAleksander Machniak <alec@alec.pl>2014-08-13 14:36:58 +0200
commit7cf65245906408dfdb004d17359a6c1aaa1f4ef9 (patch)
tree5d41b00343890c170496c3dba6cbcac93608725d
parent9cbdb6cd692e59d13b89af2128ab7473ce9e983f (diff)
changes suggested by aleks
-rw-r--r--program/lib/Roundcube/rcube_image.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_image.php b/program/lib/Roundcube/rcube_image.php
index 9b4981c68..565e9db0e 100644
--- a/program/lib/Roundcube/rcube_image.php
+++ b/program/lib/Roundcube/rcube_image.php
@@ -206,7 +206,7 @@ class rcube_image
$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']) {