X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fgoto%2Fadmin%2Fsystems%2Fgoto%2Fclass_terminalStartup.inc;h=a368ae9b04eebbe6dd5c304417eef10dfbfb748d;hb=4c138afa1befaca9f4753f2864dd029dd7bb467a;hp=077eb7123a4d4cb4da575ba4de40c7cabe2b116b;hpb=c16d7588512de02e85618a51e3f45fb0a8f72dbf;p=gosa.git diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc index 077eb7123..a368ae9b0 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc @@ -255,7 +255,7 @@ class termstartup extends plugin 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; } } @@ -282,7 +282,7 @@ class termstartup extends plugin $data[$key]=$server; /* Announce missing entries */ - if(!in_array($server,$this->gotoLdapServerList)){ + if(!in_array_strict($server,$this->gotoLdapServerList)){ $server = $server." (missing)"; } @@ -308,7 +308,7 @@ class termstartup extends plugin $list = array(); foreach($this->gotoLdapServerList as $key => $entry){ - if(!in_array($entry,$this->gotoLdapServers)){ + if(!in_array_strict($entry,$this->gotoLdapServers)){ $list[$key] = $entry; } } @@ -442,7 +442,7 @@ class termstartup extends plugin { $tmp= array(); foreach ($array as $mod){ - if (!in_array($mod, $list)){ + if (!in_array_strict($mod, $list)){ $tmp[]= $mod; } }