diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc
index 077eb7123a4d4cb4da575ba4de40c7cabe2b116b..a368ae9b04eebbe6dd5c304417eef10dfbfb748d 100644 (file)
if(!$this->gotoLdap_inherit && isset($_POST['add_ldap_server']) && isset($_POST['ldap_server_to_add'])){
if(isset($this->gotoLdapServerList[$_POST['ldap_server_to_add']])){
$to_add = $this->gotoLdapServerList[$_POST['ldap_server_to_add']];
- if(!in_array($to_add,$this->gotoLdapServers)){
+ if(!in_array_strict($to_add,$this->gotoLdapServers)){
$this->gotoLdapServers[] = $to_add;
}
}
$data[$key]=$server;
/* Announce missing entries */
- if(!in_array($server,$this->gotoLdapServerList)){
+ if(!in_array_strict($server,$this->gotoLdapServerList)){
$server = $server." <font style='color:red'>(missing)</font>";
}
$list = array();
foreach($this->gotoLdapServerList as $key => $entry){
- if(!in_array($entry,$this->gotoLdapServers)){
+ if(!in_array_strict($entry,$this->gotoLdapServers)){
$list[$key] = $entry;
}
}
{
$tmp= array();
foreach ($array as $mod){
- if (!in_array($mod, $list)){
+ if (!in_array_strict($mod, $list)){
$tmp[]= $mod;
}
}