diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-10-27 12:07:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 12:07:35 +0200 |
commit | c4e4aff41890faf755825e748d1123c6835f5122 (patch) | |
tree | f60f22511df423e8e4171b1ca53cfdf0a27edb17 /lib | |
parent | 7ca983750bfe6fc4689eb958560a250a29694f83 (diff) | |
parent | 5733fccdd10548ff0ea52b39fccfa29d7730e105 (diff) | |
download | nextcloud-server-c4e4aff41890faf755825e748d1123c6835f5122.tar.gz nextcloud-server-c4e4aff41890faf755825e748d1123c6835f5122.zip |
Merge pull request #34725 from nextcloud/backport/34579/stable25
[stable25] fix null error in getUnencryptedSize
Diffstat (limited to 'lib')
-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; } } } |