web: add missing line, bug found by Scrutinizer.

This commit is contained in:
Shawn Kwang 2018-09-20 12:40:40 -05:00
parent b75020f027
commit eae8e93bcd
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ function make_user_ldap($email_addr, $name) {
//show_hosts defaults to TRUE (1), but config option
//'enable_privacy_by_default' will set the default to FALSE(0).
$default_show_hosts = 1;
$config = get_config();
if (parse_bool($config, "enable_privacy_by_default")) {
$default_show_hosts = 0;