]> source.dussan.org Git - nextcloud-server.git/commitdiff
Added comment for clarification about fseek() call in quota.php
authorVincent Petry <pvince81@owncloud.com>
Fri, 25 Oct 2013 14:15:01 +0000 (16:15 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 25 Oct 2013 14:15:01 +0000 (16:15 +0200)
lib/private/files/stream/quota.php

index 87301c2361478d60cd9d1f40a141945115728ff1..60e60da8e67a204b8ae6490f29d5842e72f702e0 100644 (file)
@@ -81,6 +81,8 @@ class Quota {
                } else {
                        $this->limit -= $offset;
                }
+               // this wrapper needs to return "true" for success.
+               // the fseek call itself returns 0 on succeess
                return !fseek($this->source, $offset, $whence);
        }