summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-08 08:14:21 +0200
committerGitHub <noreply@github.com>2019-08-08 08:14:21 +0200
commit6b118626113f181ddad3eee5b8ad2bbfc2f5ad46 (patch)
tree35b61363264014a74948afbe587b0b7a10845988
parent00c1389628664ac2c881ac5a9f0a8372172dfea8 (diff)
parent650927a822a218096da51c1413905427e211f67d (diff)
downloadnextcloud-server-6b118626113f181ddad3eee5b8ad2bbfc2f5ad46.tar.gz
nextcloud-server-6b118626113f181ddad3eee5b8ad2bbfc2f5ad46.zip
Merge pull request #16686 from nextcloud/fix/16684/return_int_getIf
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 6958e07be56..f6139d8abed 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -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;
}