We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89ba8c6 + 55ad6c1 commit fff47cdCopy full SHA for fff47cd
lib/private/Files/Cache/Cache.php
@@ -416,7 +416,7 @@ public function getId($file) {
416
$sql = 'SELECT `fileid` FROM `*PREFIX*filecache` WHERE `storage` = ? AND `path_hash` = ?';
417
$result = $this->connection->executeQuery($sql, array($this->getNumericStorageId(), $pathHash));
418
if ($row = $result->fetch()) {
419
- return $row['fileid'];
+ return (int)$row['fileid'];
420
} else {
421
return -1;
422
}
0 commit comments