No need to check if there is an avatar available, because it is generated on the fly nowadays

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-11-02 15:39:45 +01:00 committed by backportbot[bot]
parent 5fc672f6d7
commit 1b2b478ff5
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));
}