Merge pull request #23846 from nextcloud/backport/23839/stable20
[stable20] No need to check if there is an avatar available, because it is gener…
This commit is contained in:
commit
59df41170a
|
@ -130,7 +130,7 @@ class TemplateLayout extends \OC_Template {
|
||||||
if (\OC_User::getUser() === false) {
|
if (\OC_User::getUser() === false) {
|
||||||
$this->assign('userAvatarSet', false);
|
$this->assign('userAvatarSet', false);
|
||||||
} else {
|
} 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));
|
$this->assign('userAvatarVersion', $this->config->getUserValue(\OC_User::getUser(), 'avatar', 'version', 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue