Check if imageflip is available
* imageflip() isn't available in PHP < 5.5 * fixes #14130
This commit is contained in:
parent
e929d43bb6
commit
a496c34aea
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue