summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-10-21 16:53:43 +0200
committerGitHub <noreply@github.com>2022-10-21 16:53:43 +0200
commit4aa8e8051199f9e00580a4931e08e4acad80eee1 (patch)
treef679dedbbce9a1fa9687c22ea0cc01852d83a490 /lib
parent9f2ecc732271014b995acf094a7a7422681053ac (diff)
parent63316fc572f77873f4c652f627855db3d67a0def (diff)
downloadnextcloud-server-4aa8e8051199f9e00580a4931e08e4acad80eee1.tar.gz
nextcloud-server-4aa8e8051199f9e00580a4931e08e4acad80eee1.zip
Merge pull request #34579 from nextcloud/unencrypted-size-null
fix null error in getUnencryptedSize
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;
}
}
}