From a496c34aea411153a3e353c255fca3bcf593553a Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 12 Feb 2015 08:59:47 +0100 Subject: [PATCH] Check if imageflip is available * imageflip() isn't available in PHP < 5.5 * fixes #14130 --- lib/private/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/image.php b/lib/private/image.php index f5f9a04fac..317b6fde16 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) {