[Pkg-owncloud-commits] [owncloud] 19/67: supress some warning in cloudfiles library

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:10:33 UTC 2013


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

taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.

commit 34fdd0e839b12e35f848718dedcaab710a93059a
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Oct 11 22:08:11 2012 +0200

    supress some warning in cloudfiles library
---
 3rdparty/php-cloudfiles/cloudfiles.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/3rdparty/php-cloudfiles/cloudfiles.php b/3rdparty/php-cloudfiles/cloudfiles.php
index 5f7e210..7b10142 100644
--- a/3rdparty/php-cloudfiles/cloudfiles.php
+++ b/3rdparty/php-cloudfiles/cloudfiles.php
@@ -2000,7 +2000,7 @@ class CF_Object
 //         }
 
 		//use OC's mimetype detection for files
-		if(is_file($handle)){
+		if(@is_file($handle)){
 			$this->content_type=OC_Helper::getMimeType($handle);
 		}else{
 			$this->content_type=OC_Helper::getStringMimeType($handle);
@@ -2537,7 +2537,7 @@ class CF_Object
             }
             $md5 = hash_final($ctx, false);
             rewind($data);
-        } elseif ((string)is_file($data)) {
+        } elseif ((string)@is_file($data)) {
             $md5 = md5_file($data);
         } else {
             $md5 = md5($data);

-- 
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