diff options
author | Robin Appelman <robin@icewind.nl> | 2021-01-27 18:08:10 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-01-27 18:08:10 +0100 |
commit | 1ecc02946fa2701b2fc93d28cc66679dbe4ae233 (patch) | |
tree | 92c5483bdfd6e0eb58677a9311d2d2d4f67919ce /apps/files/lib | |
parent | 68589f779212d4c78bc62dc0853b371ac75c6433 (diff) | |
download | nextcloud-server-1ecc02946fa2701b2fc93d28cc66679dbe4ae233.tar.gz nextcloud-server-1ecc02946fa2701b2fc93d28cc66679dbe4ae233.zip |
cast ints
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Command/RepairTree.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Command/RepairTree.php b/apps/files/lib/Command/RepairTree.php index 1e4607dbe64..144ce5654eb 100644 --- a/apps/files/lib/Command/RepairTree.php +++ b/apps/files/lib/Command/RepairTree.php @@ -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'], |