summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-08-07 20:38:42 +0200
committerBackportbot <backportbot-noreply@rullzer.com>2019-08-08 06:15:53 +0000
commit337aa1cd3ca858acb20691de946ee55ed0e80c93 (patch)
tree2973c41edef7703e80782f78930e99c98af6dc3c
parent7dc8425c16a692b14a799a0c9fbf3fdbae28c214 (diff)
downloadnextcloud-server-337aa1cd3ca858acb20691de946ee55ed0e80c93.tar.gz
nextcloud-server-337aa1cd3ca858acb20691de946ee55ed0e80c93.zip
Properly return an int in the getId function of the cache
fixes #16684 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r--lib/private/Files/Cache/Cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 5c7ef226096..ac604462613 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -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;
}