mirror of https://github.com/nextcloud/server
fix: Avoid calling setUserValue on null user id
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
80191906b3
commit
29a648ab73
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue