[Pkg-owncloud-commits] [owncloud] 121/258: in quota wrapper use === instead of ! for better readability and as in other wrappers

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:27 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit 44c7562c7bad02ea9171b771995e3306908532b3
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Mon Sep 22 11:35:42 2014 +0200

    in quota wrapper use === instead of ! for better readability and as in other wrappers
---
 lib/private/files/stream/quota.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/stream/quota.php b/lib/private/files/stream/quota.php
index bb4623b..cef9d84 100644
--- a/lib/private/files/stream/quota.php
+++ b/lib/private/files/stream/quota.php
@@ -83,7 +83,7 @@ class Quota {
 		}
 		// this wrapper needs to return "true" for success.
 		// the fseek call itself returns 0 on succeess
-		return !fseek($this->source, $offset, $whence);
+		return fseek($this->source, $offset, $whence) === 0;
 	}
 
 	public function stream_tell() {

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