diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-02-12 08:59:47 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-02-12 10:21:20 +0100 |
commit | a496c34aea411153a3e353c255fca3bcf593553a (patch) | |
tree | a674f5bcadcf275ed6d65ad5a202190281208818 /lib/private | |
parent | e929d43bb63bf19c2f7e9cbb7d4f6c9ad1561588 (diff) | |
download | nextcloud-server-a496c34aea411153a3e353c255fca3bcf593553a.tar.gz nextcloud-server-a496c34aea411153a3e353c255fca3bcf593553a.zip |
Check if imageflip is available
* imageflip() isn't available in PHP < 5.5
* fixes #14130
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/image.php b/lib/private/image.php index f5f9a04facc..317b6fde160 100644 --- a/lib/private/image.php +++ b/lib/private/image.php @@ -391,7 +391,7 @@ class OC_Image { $rotate = 90; break; } - if($flip) { + if($flip && function_exists('imageflip')) { imageflip($this->resource, IMG_FLIP_HORIZONTAL); } if ($rotate) { |