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 00c1389 + 650927a commit 6b11862Copy full SHA for 6b11862
1 file changed
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