Properly return an int in the getId function of the cache

fixes #16684

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/16689/head
Roeland Jago Douma 2019-08-07 20:38:42 +07:00 committed by Backportbot
parent 89ba8c6c6d
commit 55ad6c1fa2
1 changed files with 1 additions and 1 deletions

@ -416,7 +416,7 @@ class Cache implements ICache {
$sql = 'SELECT `fileid` FROM `*PREFIX*filecache` WHERE `storage` = ? AND `path_hash` = ?';
$result = $this->connection->executeQuery($sql, array($this->getNumericStorageId(), $pathHash));
if ($row = $result->fetch()) {
return $row['fileid'];
return (int)$row['fileid'];
} else {
return -1;
}