Merge pull request #23847 from nextcloud/backport/23839/stable19

[stable19] No need to check if there is an avatar available, because it is gener…
This commit is contained in:
Morris Jobke 2020-11-03 10:46:59 +01:00 committed by GitHub
commit 96f8cd0736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,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));
}