summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/wrapper
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-02 15:28:49 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-14 12:54:42 +0100
commitd2c579e16772cb6666d95d484b9aa11764217a0a (patch)
treed81f0494e09dafcba38a5a523e4ceae56fbb9b27 /lib/private/files/storage/wrapper
parent62d383e1ba70b85c488bf72c83d2b117476b100b (diff)
downloadnextcloud-server-d2c579e16772cb6666d95d484b9aa11764217a0a.tar.gz
nextcloud-server-d2c579e16772cb6666d95d484b9aa11764217a0a.zip
fix quota wrapper
Diffstat (limited to 'lib/private/files/storage/wrapper')
-rw-r--r--lib/private/files/storage/wrapper/quota.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/quota.php b/lib/private/files/storage/wrapper/quota.php
index 55c826092c1..844505679df 100644
--- a/lib/private/files/storage/wrapper/quota.php
+++ b/lib/private/files/storage/wrapper/quota.php
@@ -25,6 +25,8 @@
namespace OC\Files\Storage\Wrapper;
+use OCP\Files\Cache\ICacheEntry;
+
class Quota extends Wrapper {
/**
@@ -64,7 +66,7 @@ class Quota extends Wrapper {
$cache = $storage->getCache();
}
$data = $cache->get($path);
- if (is_array($data) and isset($data['size'])) {
+ if ($data instanceof ICacheEntry and isset($data['size'])) {
return $data['size'];
} else {
return \OCP\Files\FileInfo::SPACE_NOT_COMPUTED;