summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-10-13 15:34:48 +0200
committerRobin Appelman <robin@icewind.nl>2022-10-13 15:34:48 +0200
commit63316fc572f77873f4c652f627855db3d67a0def (patch)
treefd6e6ab04bebba19f3a168cf3769249e40b1641f /lib
parent9d0f529f1b6ac08da379659d2cb5313d9c44d2eb (diff)
downloadnextcloud-server-63316fc572f77873f4c652f627855db3d67a0def.tar.gz
nextcloud-server-63316fc572f77873f4c652f627855db3d67a0def.zip
fix null error in getUnencryptedSize
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/CacheEntry.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php
index 8ac76acf6d1..3c93296ff62 100644
--- a/lib/private/Files/Cache/CacheEntry.php
+++ b/lib/private/Files/Cache/CacheEntry.php
@@ -137,7 +137,7 @@ class CacheEntry implements ICacheEntry {
if (isset($this->data['unencrypted_size']) && $this->data['unencrypted_size'] > 0) {
return $this->data['unencrypted_size'];
} else {
- return $this->data['size'];
+ return $this->data['size'] ?? 0;
}
}
}