mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #30890 from nextcloud/backport/30886/stable23
[stable23] Fixes occ user:info when the user never logged in
This commit is contained in:
commit
abf2ed8ce7
1 changed files with 5 additions and 1 deletions
|
|
@ -97,7 +97,11 @@ class Info extends Base {
|
|||
protected function getStorageInfo(IUser $user): array {
|
||||
\OC_Util::tearDownFS();
|
||||
\OC_Util::setupFS($user->getUID());
|
||||
$storage = \OC_Helper::getStorageInfo('/');
|
||||
try {
|
||||
$storage = \OC_Helper::getStorageInfo('/');
|
||||
} catch (\OCP\Files\NotFoundException $e) {
|
||||
return [];
|
||||
}
|
||||
return [
|
||||
'free' => $storage['free'],
|
||||
'used' => $storage['used'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue