Skip to content

Commit 41eee84

Browse files
authored
Merge pull request #54995 from nextcloud/backport/54919/stable31
[stable31] fix: don't show object size warning if we can't determine the object size
2 parents 3e6d974 + e49f0ef commit 41eee84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Command/Info/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function outputStorageDetails(IMountPoint $mountPoint, Node $node, Input
153153
}
154154
$stat = fstat($fh);
155155
fclose($fh);
156-
if ($stat['size'] !== $node->getSize()) {
156+
if (isset($stat['size']) && $stat['size'] !== $node->getSize()) {
157157
$output->writeln(' <error>warning: object had a size of ' . $stat['size'] . ' but cache entry has a size of ' . $node->getSize() . '</error>. This should have been automatically repaired');
158158
}
159159
} catch (\Exception $e) {

0 commit comments

Comments
 (0)