mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Properly return an int in the getId function of the cache
fixes #16684 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
7dc8425c16
commit
337aa1cd3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue