From 650927a822a218096da51c1413905427e211f67d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 7 Aug 2019 20:38:42 +0200 Subject: [PATCH] Properly return an int in the getId function of the cache fixes #16684 Signed-off-by: Roeland Jago Douma --- lib/private/Files/Cache/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5