X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_terminalService.inc;h=305c732248b287b472f48e8f32c2548339779504;hb=7f51b7c557fe5fb3c73b5bde15856fbfdb08efbb;hp=2779986921f66762e73301db26a4224c31ede072;hpb=b36a7120260716916947dd72bf419bd03ae620e5;p=gosa.git diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc index 277998692..305c73224 100644 --- a/plugins/admin/systems/class_terminalService.inc +++ b/plugins/admin/systems/class_terminalService.inc @@ -195,7 +195,7 @@ class termservice extends plugin ksort($this->hardware_list); /* Convert gotoLpdEnable */ - $this->gotoLpdEnable= ($this->gotoLpdEnable == "yes"); + $this->gotoLpdEnable= preg_match("/yes/",$this->gotoLpdEnable); /* Load hardware list */ $ldap= $this->config->get_ldap_link(); @@ -396,6 +396,9 @@ class termservice extends plugin /* Save to LDAP */ function save() { + /* Convert to string */ + $this->gotoLpdEnable= $this->gotoLpdEnable?"Yes":"No"; + plugin::save(); /* Strip out 'default' values */ @@ -409,9 +412,6 @@ class termservice extends plugin } } - /* Convert to string */ - $this->gotoLpdEnable= $this->gotoLpdEnable?"yes":"no"; - /* Write back to ldap */ $ldap= $this->config->get_ldap_link(); $ldap->cd($this->dn);