fix null error in getUnencryptedSize

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/34579/head
Robin Appelman 4 years ago
parent 9d0f529f1b
commit 63316fc572
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 2
      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;
}
}
}

Loading…
Cancel
Save