]> source.dussan.org Git - nextcloud-server.git/commitdiff
in quota wrapper use === instead of ! for better readability and as in other wrappers
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 22 Sep 2014 09:35:42 +0000 (11:35 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 22 Sep 2014 14:26:20 +0000 (16:26 +0200)
lib/private/files/stream/quota.php

index bb4623b1a7b8d61f1d57bbea95a5d6fe2c9cbf6d..cef9d84f560e01bf4e5cf6ec2f5ac38ef754ed8c 100644 (file)
@@ -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() {