From: cajus Date: Mon, 17 Mar 2008 15:50:47 +0000 (+0000) Subject: Fixed LDAP change detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e80417f869aaa6b1f8e5f410180ec001d72b3b13;p=gosa.git Fixed LDAP change detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9901 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 17f3ae958..0b12ac8e8 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -847,9 +847,16 @@ class workstartup extends plugin } /* Check if LDAP server has changed */ - $ldap_changed= (isset($this->attrs['gotoLdapServer'])) && - (isset($this->saved_attributes['gotoLdapServer'])) && - ($this->attrs['gotoLdapServer'] != $this->saved_attributes['gotoLdapServer']); + $ldap_changed= false; + if (isset($this->saved_attributes['gotoLdapServer'])){ + if (isset($this->attrs['gotoLdapServer']) && $this->attrs['gotoLdapServer'] != $this->saved_attributes['gotoLdapServer']){ + $ldap_changed= true; + } + } else { + if (isset($this->attrs['gotoLdapServer'])){ + $ldap_changed= true; + } + } if (($this->attrs['gotoBootKernel'] == "default-inherited") || ($this->attrs['gotoBootKernel'] == "%default%")){ $this->attrs['gotoBootKernel']= array();