We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c41cf commit b0a1c0aCopy full SHA for b0a1c0a
lib/Service/Note.php
@@ -37,6 +37,10 @@ public function getCategory() : string {
37
38
public function getContent() : string {
39
$content = $this->file->getContent();
40
+ // blank files return false when using object storage as primary storage
41
+ if ($content === false && $this->file->getSize() === 0) {
42
+ $content = '';
43
+ }
44
if (!is_string($content)) {
45
throw new \Exception('Can\'t read file content.');
46
}
0 commit comments