Merge pull request #34579 from nextcloud/unencrypted-size-null

fix null error in getUnencryptedSize
This commit is contained in:
Vincent Petry 2022-10-21 16:53:43 +02:00 committed by GitHub
commit 4aa8e80511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
}