diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index 8fa9eddc727ef19ff860c7fb648c55e2a68d9031..7945fd2fbf7cd5ccb242d4f75b17e73de5c8cde8 100644 (file)
isset($_POST['ldap_server_to_add'])){
if(isset($this->gotoLdapServerList[get_post('ldap_server_to_add')])){
$to_add = $this->gotoLdapServerList[get_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)){
/* Convert old style entry */
if (!preg_match('%:ldap[s]*://%', $entry)){
{
$tmp= array();
foreach ($array as $mod){
- if (!in_array($mod, $list)){
+ if (!in_array_strict($mod, $list)){
$tmp[]= $mod;
}
}
$Abbr ="";
$ret= array();
foreach($classes as $class_name => $class_types){
- if(!in_array($class_name,$this->FAIclass)){
+ if(!in_array_strict($class_name,$this->FAIclass)){
$Abbr = "";
foreach($class_types as $type){
if(!preg_match("/".$type['Abbr']."/",$Abbr)){