fix: Avoid calling setUserValue on null user id

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2024-03-06 18:36:08 +01:00
parent 80191906b3
commit 29a648ab73
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}