summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-27 15:17:25 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-27 15:17:25 +0100
commit1601d9235a69dff26f23263d53228d632985a71d (patch)
tree72f44db7dafe62d161366a284315755217e9f903 /settings/personal.php
parent308396b770f3b1b41ba31ff0ee889d485b14d14a (diff)
downloadnextcloud-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 'settings/personal.php')
-rw-r--r--settings/personal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/personal.php b/settings/personal.php
index 261a459a921..d2d4fc90f5e 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -149,7 +149,7 @@ $tmpl->assign('activelanguage', $userLang);
$tmpl->assign('passwordChangeSupported', OC_User::canUserChangePassword(OC_User::getUser()));
$tmpl->assign('displayNameChangeSupported', OC_User::canUserChangeDisplayName(OC_User::getUser()));
$tmpl->assign('displayName', OC_User::getDisplayName());
-$tmpl->assign('enableAvatars', $config->getSystemValue('enable_avatars', true));
+$tmpl->assign('enableAvatars', $config->getSystemValue('enable_avatars', true) === true);
$tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser()));
$tmpl->assign('certs', $certificateManager->listCertificates());
$tmpl->assign('showCertificates', $enableCertImport);