aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-03-06 18:36:08 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-03-06 18:36:08 +0100
commit29a648ab73a242e97505547c35b812658751da23 (patch)
tree16efc844a417f1d9349cf7ea7eef99155a325825 /lib/private/legacy
parent80191906b3a1ad42f73317158b20555591aae6bf (diff)
downloadnextcloud-server-29a648ab73a242e97505547c35b812658751da23.tar.gz
nextcloud-server-29a648ab73a242e97505547c35b812658751da23.zip
fix: Avoid calling setUserValue on null user id
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/OC_Helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index 2e95d5976cb..9a12bd50e0e 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -596,7 +596,7 @@ class OC_Helper {
'mountPoint' => trim($mountPoint, '/'),
];
- if ($path === '/') {
+ if ($ownerId && $path === '/') {
// If path is root, store this as last known quota usage for this user
\OCP\Server::get(\OCP\IConfig::class)->setUserValue($ownerId, 'files', 'lastSeenQuotaUsage', (string)$relative);
}