diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-01 16:16:53 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-01 16:16:53 +0100 |
commit | 2b9fcac462006fe4d36532e4e9b2b12aed6ec6a6 (patch) | |
tree | 683f7a90ebcc231488718d21364493d71d9e794e /lib | |
parent | 0fd92a28518820ae9e1f0b0a13a8b839a7390238 (diff) | |
parent | 85692194d51eb0277903ecf364d7cb5cf9ed8bc8 (diff) | |
download | nextcloud-server-2b9fcac462006fe4d36532e4e9b2b12aed6ec6a6.tar.gz nextcloud-server-2b9fcac462006fe4d36532e4e9b2b12aed6ec6a6.zip |
Merge pull request #22047 from owncloud/stable8.2-backport-21953
[stable8.2] Make enable_avatars setting more robust
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/templatelayout.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |