Skip to content

Commit 3ddf700

Browse files
Merge pull request #54996 from nextcloud/backport/54919/stable32
[stable32] fix: don't show object size warning if we can't determine the object size
2 parents 767db64 + 8ce364e commit 3ddf700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/Command/Info/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function outputStorageDetails(IMountPoint $mountPoint, Node $node, Input
176176
}
177177
$stat = fstat($fh);
178178
fclose($fh);
179-
if ($stat['size'] !== $node->getSize()) {
179+
if (isset($stat['size']) && $stat['size'] !== $node->getSize()) {
180180
$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');
181181
}
182182
} catch (\Exception $e) {

0 commit comments

Comments
 (0)