From 85692194d51eb0277903ecf364d7cb5cf9ed8bc8 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 27 Jan 2016 15:17:25 +0100 Subject: Make enable_avatars setting more robust * handles the setting in the same way everywhere * fixes #21949 --- lib/private/templatelayout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php index 7d16823d2a8..17cb6051115 100644 --- a/lib/private/templatelayout.php +++ b/lib/private/templatelayout.php @@ -124,7 +124,7 @@ class OC_TemplateLayout extends OC_Template { $this->assign('user_displayname', $userDisplayName); $this->assign('user_uid', OC_User::getUser()); $this->assign('appsmanagement_active', $appsMgmtActive); - $this->assign('enableAvatars', $this->config->getSystemValue('enable_avatars', true)); + $this->assign('enableAvatars', $this->config->getSystemValue('enable_avatars', true) === true); $this->assign('userAvatarSet', \OC_Helper::userAvatarSet(OC_User::getUser())); } else if ($renderAs == 'error') { parent::__construct('core', 'layout.guest', '', false); -- cgit v1.2.3