Merge pull request #14138 from owncloud/fix-image-flip-php53

Don't flip image in PHP 5.4
This commit is contained in:
Thomas Müller 2015-02-16 10:26:56 +01:00
commit d5ca5c7bcc
1 changed files with 1 additions and 1 deletions

View File

@ -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) {