diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-07 20:38:42 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-07 20:38:42 +0200 |
commit | 650927a822a218096da51c1413905427e211f67d (patch) | |
tree | 823b24d8afbfa5b0cf265b783c6434ef7176f582 /lib | |
parent | 52f24b50f5dbcaa8e3e022b44bd070bca336fcf8 (diff) | |
download | nextcloud-server-650927a822a218096da51c1413905427e211f67d.tar.gz nextcloud-server-650927a822a218096da51c1413905427e211f67d.zip |
Properly return an int in the getId function of the cache
fixes #16684
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/Cache.php | 2 |
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; } |