diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-16 14:10:05 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-08-16 14:10:05 +0200 |
commit | 8004aa77212eed6dd1142c713275a4e0c5d0c40e (patch) | |
tree | f9d0b1589dd354ddbe55f7738f6df95c75fae29f /apps/files_sharing | |
parent | 604c1752845df068a7dd5d168abfbfc04065ac3f (diff) | |
download | nextcloud-server-8004aa77212eed6dd1142c713275a4e0c5d0c40e.tar.gz nextcloud-server-8004aa77212eed6dd1142c713275a4e0c5d0c40e.zip |
Make DisplayNameCache return null if user doesn't exists
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php index 9f11431008f..707b64b79d7 100644 --- a/apps/files_sharing/lib/Cache.php +++ b/apps/files_sharing/lib/Cache.php @@ -170,7 +170,7 @@ class Cache extends CacheJail { private function getOwnerDisplayName() { if (!$this->ownerDisplayName) { $uid = $this->storage->getOwner(''); - $this->ownerDisplayName = $this->displayNameCache->getDisplayName($uid); + $this->ownerDisplayName = $this->displayNameCache->getDisplayName($uid) ?? $uid; } return $this->ownerDisplayName; } |