summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrendan braybrook <brendan@tucows.com>2014-08-12 18:39:55 +0000
committerbrendan braybrook <brendan@tucows.com>2014-08-12 18:39:55 +0000
commit090bacddb6e563ae3f89c9e490c6db28d96b3f95 (patch)
treef1b452c99432fa246f7e61d852f98849c73b3a06
parente2dd31f9878bb619ca53aa4708f8966808d7842a (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 c7a60e672..62dc5fa96 100644
--- a/program/lib/Roundcube/rcube_image.php
+++ b/program/lib/Roundcube/rcube_image.php
@@ -229,7 +229,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']) {