summaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-02 15:39:45 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-02 15:39:45 +0100
commit7debc6e0b6efd385c7a5252ac53d60c3652db1d8 (patch)
tree67f5178f6698819958cf63054df46feaaf9532c4 /lib/private/TemplateLayout.php
parentff08b10a897f059adbd30b61e6f4ba1e9af7b719 (diff)
downloadnextcloud-server-7debc6e0b6efd385c7a5252ac53d60c3652db1d8.tar.gz
nextcloud-server-7debc6e0b6efd385c7a5252ac53d60c3652db1d8.zip
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>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php2
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));
}