diff options
author | Robin Appelman <robin@icewind.nl> | 2022-10-13 15:34:48 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-10-24 13:34:52 +0000 |
commit | 29c359d7e745f1373a7da8a4afb32215cd63158e (patch) | |
tree | befb2edcdc070cc38aca3839026cd0c3c377bdc1 /lib/private | |
parent | 9751349fcef03a61ceab96a5d1d4ba089cd3e497 (diff) | |
download | nextcloud-server-29c359d7e745f1373a7da8a4afb32215cd63158e.tar.gz nextcloud-server-29c359d7e745f1373a7da8a4afb32215cd63158e.zip |
fix null error in getUnencryptedSize
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Cache/CacheEntry.php | 2 |
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; } } } |