diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-08 08:14:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 08:14:21 +0200 |
commit | 6b118626113f181ddad3eee5b8ad2bbfc2f5ad46 (patch) | |
tree | 35b61363264014a74948afbe587b0b7a10845988 | |
parent | 00c1389628664ac2c881ac5a9f0a8372172dfea8 (diff) | |
parent | 650927a822a218096da51c1413905427e211f67d (diff) | |
download | nextcloud-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.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; } |