mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
fix: don't show object size warning if we can't determine the object size
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
1c59c1054a
commit
e49f0ef010
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ class File extends Command {
|
|||
}
|
||||
$stat = fstat($fh);
|
||||
fclose($fh);
|
||||
if ($stat['size'] !== $node->getSize()) {
|
||||
if (isset($stat['size']) && $stat['size'] !== $node->getSize()) {
|
||||
$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');
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue