Check if imageflip is available

* imageflip() isn't available in PHP < 5.5
* fixes #14130
This commit is contained in:
Morris Jobke 2015-02-12 08:59:47 +01:00
parent e929d43bb6
commit a496c34aea
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ class OC_Image {
$rotate = 90; $rotate = 90;
break; break;
} }
if($flip) { if($flip && function_exists('imageflip')) {
imageflip($this->resource, IMG_FLIP_HORIZONTAL); imageflip($this->resource, IMG_FLIP_HORIZONTAL);
} }
if ($rotate) { if ($rotate) {