aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-05 17:25:40 +0200
committerRobin Appelman <robin@icewind.nl>2024-07-17 15:46:31 +0200
commit80f8c7949e2ee224f1f8ec0eb1cf7e6a3513f186 (patch)
treeeb7791c146d75bc07328f6fac433071298dd6120
parent5ff7bde3fb1213cb0141d2e33fdc762298103116 (diff)
downloadnextcloud-server-80f8c7949e2ee224f1f8ec0eb1cf7e6a3513f186.tar.gz
nextcloud-server-80f8c7949e2ee224f1f8ec0eb1cf7e6a3513f186.zip
fix: always set storage id in Cache::get
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/Files/Cache/Cache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 940b192e735..a4290549dd9 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -120,11 +120,11 @@ class Cache implements ICache {
// normalize file
$file = $this->normalize($file);
- $query->whereStorageId($this->getNumericStorageId())
- ->wherePath($file);
+ $query->wherePath($file);
} else { //file id
$query->whereFileId($file);
}
+ $query->whereStorageId($this->getNumericStorageId());
$result = $query->execute();
$data = $result->fetch();