diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-02 19:07:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 19:07:57 +0100 |
commit | 2d67cb9510de4a296f4d783071f06329efb2218d (patch) | |
tree | c7d39d2fe6e2f8ec806d3fad5d5a3f2265f683cb /lib | |
parent | 1a3daa6ff9344d2611e89ba8142709bc7f670f5d (diff) | |
parent | 7debc6e0b6efd385c7a5252ac53d60c3652db1d8 (diff) | |
download | nextcloud-server-2d67cb9510de4a296f4d783071f06329efb2218d.tar.gz nextcloud-server-2d67cb9510de4a296f4d783071f06329efb2218d.zip |
Merge pull request #23839 from nextcloud/fix/noid/avatar-status
No need to check if there is an avatar available, because it is gener…
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/TemplateLayout.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index e8ebee82a5d..81695247af0 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -130,7 +130,7 @@ class TemplateLayout extends \OC_Template { if (\OC_User::getUser() === false) { $this->assign('userAvatarSet', false); } else { - $this->assign('userAvatarSet', \OC::$server->getAvatarManager()->getAvatar(\OC_User::getUser())->exists()); + $this->assign('userAvatarSet', true); $this->assign('userAvatarVersion', $this->config->getUserValue(\OC_User::getUser(), 'avatar', 'version', 0)); } |