mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
Fix null displayname crash as described in #21885
Signed-off-by: tgrant <tom.grant760@gmail.com>
This commit is contained in:
parent
37feee4e87
commit
f1710b57bc
1 changed files with 5 additions and 1 deletions
|
|
@ -458,7 +458,11 @@ class Database extends ABackend implements
|
|||
|
||||
public function getDisplayName(string $gid): string {
|
||||
if (isset($this->groupCache[$gid])) {
|
||||
return $this->groupCache[$gid]['displayname'];
|
||||
$displayName = $this->groupCache[$gid]['displayname'];
|
||||
|
||||
if (isset($displayName) && trim($displayName) !== '') {
|
||||
return $displayName;
|
||||
}
|
||||
}
|
||||
|
||||
$this->fixDI();
|
||||
|
|
|
|||
Loading…
Reference in a new issue