Merge pull request #16689 from nextcloud/backport/16686/stable16
[stable16] Properly return an int in the getId function of the cache
This commit is contained in:
commit
fff47cdecb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue