diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-10-21 16:53:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 16:53:43 +0200 |
commit | 4aa8e8051199f9e00580a4931e08e4acad80eee1 (patch) | |
tree | f679dedbbce9a1fa9687c22ea0cc01852d83a490 /lib | |
parent | 9f2ecc732271014b995acf094a7a7422681053ac (diff) | |
parent | 63316fc572f77873f4c652f627855db3d67a0def (diff) | |
download | nextcloud-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.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; } } } |