Change visual of put permissions of AD. Ticket: #4057

This commit is contained in:
m-lopez-f 2016-09-22 15:21:39 +02:00
parent d0586a8e24
commit 6fd6c90424
1 changed files with 3 additions and 4 deletions

View File

@ -53,8 +53,7 @@ function config_update_value ($token, $value) {
}
if ($token == 'ad_adv_perms') {
$value = str_replace(array("\r\n", "\r", "\n"), ";",
io_safe_output($value));
$value = io_safe_output($value);
}
if ($token == 'default_assign_tags') {
@ -1168,14 +1167,14 @@ function config_process_config () {
config_update_value ( 'ad_domain', '');
}
if (!isset ($config["ad_adv_perms"])) {
if (!isset ($config['ad_adv_perms'])) {
config_update_value ('ad_adv_perms', '');
}
else{
$temp_ad_adv_perms = array();
if (isset($config['ad_adv_perms'])) {
if (!empty($config['ad_adv_perms'])) {
$temp_ad_adv_perms = explode(';', io_safe_output($config['ad_adv_perms']));
$temp_ad_adv_perms = $config['ad_adv_perms'];
}
}
$config['ad_adv_perms'] = $temp_ad_adv_perms;