summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-08 09:59:17 +0200
committerGitHub <noreply@github.com>2019-08-08 09:59:17 +0200
commit013349c7cb58b51c722e9d688144299bb53b9069 (patch)
tree2973c41edef7703e80782f78930e99c98af6dc3c
parent7dc8425c16a692b14a799a0c9fbf3fdbae28c214 (diff)
parent337aa1cd3ca858acb20691de946ee55ed0e80c93 (diff)
downloadnextcloud-server-013349c7cb58b51c722e9d688144299bb53b9069.tar.gz
nextcloud-server-013349c7cb58b51c722e9d688144299bb53b9069.zip
Merge pull request #16690 from nextcloud/backport/16686/stable15
[stable15] Properly return an int in the getId function of the cache
-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;
}