diff options
author | Bart Visscher <bartv@thisnet.nl> | 2014-02-10 21:32:17 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2014-02-10 21:32:17 +0100 |
commit | 082abdc62080730f70ac0fac67628e4d3bb0cc7b (patch) | |
tree | 0054fcb95d954b31933aaafbbdcd69d66a6c944e /lib/private/files/storage/wrapper/quota.php | |
parent | 5c3c379f351be913fe7abd500fadd69a83687ebc (diff) | |
parent | bea80ffe2060407e5d849a86f71fae2eed80b08e (diff) | |
download | nextcloud-server-082abdc62080730f70ac0fac67628e4d3bb0cc7b.tar.gz nextcloud-server-082abdc62080730f70ac0fac67628e4d3bb0cc7b.zip |
Merge branch 'master' into migration_unit_tests
Diffstat (limited to 'lib/private/files/storage/wrapper/quota.php')
-rw-r--r-- | lib/private/files/storage/wrapper/quota.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/quota.php b/lib/private/files/storage/wrapper/quota.php index 43016e0892f..a430e3e4617 100644 --- a/lib/private/files/storage/wrapper/quota.php +++ b/lib/private/files/storage/wrapper/quota.php @@ -95,7 +95,7 @@ class Quota extends Wrapper { public function fopen($path, $mode) { $source = $this->storage->fopen($path, $mode); $free = $this->free_space(''); - if ($free >= 0 && $mode !== 'r') { + if ($source && $free >= 0 && $mode !== 'r' && $mode !== 'rb') { return \OC\Files\Stream\Quota::wrap($source, $free); } else { return $source; |