mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 22:11:01 -05:00
Fix null displayname crash as described in #21885
Signed-off-by: tgrant <tom.grant760@gmail.com>
This commit is contained in:
parent
2d1e0ae8f7
commit
b60b800bb1
1 changed files with 5 additions and 1 deletions
|
|
@ -456,7 +456,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