diff --git a/core/Command/Info/File.php b/core/Command/Info/File.php index 018bd35fdb63e..889cc231d7206 100644 --- a/core/Command/Info/File.php +++ b/core/Command/Info/File.php @@ -153,7 +153,7 @@ private function outputStorageDetails(IMountPoint $mountPoint, Node $node, Input } $stat = fstat($fh); fclose($fh); - if ($stat['size'] !== $node->getSize()) { + if (isset($stat['size']) && $stat['size'] !== $node->getSize()) { $output->writeln(' warning: object had a size of ' . $stat['size'] . ' but cache entry has a size of ' . $node->getSize() . '. This should have been automatically repaired'); } } catch (\Exception $e) {