Skip to content
Snippets Groups Projects
Unverified Commit 6b118626 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #16686 from nextcloud/fix/16684/return_int_getIf

Properly return an int in the getId function of the cache
parents 00c13896 650927a8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment