diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-01-27 15:17:25 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-27 15:17:25 +0100 |
commit | 1601d9235a69dff26f23263d53228d632985a71d (patch) | |
tree | 72f44db7dafe62d161366a284315755217e9f903 /lib/private/templatelayout.php | |
parent | 308396b770f3b1b41ba31ff0ee889d485b14d14a (diff) | |
download | nextcloud-server-1601d9235a69dff26f23263d53228d632985a71d.tar.gz nextcloud-server-1601d9235a69dff26f23263d53228d632985a71d.zip |
Make enable_avatars setting more robust
* handles the setting in the same way everywhere
* fixes #21949
Diffstat (limited to 'lib/private/templatelayout.php')
-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 7f17ab15335..bc66c0dfb1e 100644 --- a/lib/private/templatelayout.php +++ b/lib/private/templatelayout.php @@ -130,7 +130,7 @@ class 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); if (\OC_User::getUser() === false) { $this->assign('userAvatarSet', false); |