[Pkg-owncloud-commits] [owncloud] 28/95: Check if imageflip is available

David Prévot taffit at moszumanska.debian.org
Wed Mar 11 15:49:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.1
in repository owncloud.

commit 95aa9a8890eaccb89b714e378941019933d40c5a
Author: Morris Jobke <hey at morrisjobke.de>
Date:   Thu Feb 12 08:59:47 2015 +0100

    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 f5f9a04..317b6fd 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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list