Merge pull request #16690 from nextcloud/backport/16686/stable15

[stable15] Properly return an int in the getId function of the cache
This commit is contained in:
Roeland Jago Douma 2019-08-08 09:59:17 +02:00 committed by GitHub
commit 013349c7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,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;
}