mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Use nullsafe call syntax instead of additionnal check
Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
This commit is contained in:
parent
fd0de0a2d1
commit
24ad2e2dc4
1 changed files with 1 additions and 1 deletions
|
|
@ -1559,7 +1559,7 @@ class Manager implements IManager {
|
|||
$uids = array_unique([$share->getShareOwner(),$share->getSharedBy()]);
|
||||
foreach ($uids as $uid) {
|
||||
$user = $this->userManager->get($uid);
|
||||
if (($user !== null) && !$user->isEnabled()) {
|
||||
if ($user?->isEnabled() === false) {
|
||||
throw new ShareNotFound($this->l->t('The requested share comes from a disabled user'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue