cast ints

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-01-27 18:08:10 +01:00
parent 68589f7792
commit 1ecc02946f
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 2 additions and 2 deletions

View File

@ -69,10 +69,10 @@ class RepairTree extends Command {
$output->writeln("Path of file ${row['fileid']} is ${row['path']} but should be ${row['parent_path']}/${row['name']} based on it's parent", OutputInterface::VERBOSITY_VERBOSE);
if ($fix) {
$fileId = $this->getFileId($row['parent_storage'], $row['parent_path'] . '/' . $row['name']);
$fileId = $this->getFileId((int)$row['parent_storage'], $row['parent_path'] . '/' . $row['name']);
if ($fileId > 0) {
$output->writeln("Cache entry has already be recreated with id $fileId, deleting instead");
$this->deleteById($row['fileid']);
$this->deleteById((int)$row['fileid']);
} else {
$query->setParameters([
'fileid' => $row['fileid'],