diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-10-27 18:12:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 18:12:46 +0200 |
commit | e8a69778d3c33da90c04bf0e428f489a47c1cc5f (patch) | |
tree | ae619ae140be96910ce52c353fb8d2a9078eb864 | |
parent | 6357b97d0ba32c253650e97ded894030de3bfda4 (diff) | |
parent | 29c359d7e745f1373a7da8a4afb32215cd63158e (diff) | |
download | nextcloud-server-e8a69778d3c33da90c04bf0e428f489a47c1cc5f.tar.gz nextcloud-server-e8a69778d3c33da90c04bf0e428f489a47c1cc5f.zip |
Merge pull request #34770 from nextcloud/backport/34579/stable24
[stable24] fix null error in getUnencryptedSize
-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; } } } |