diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc
index 2779986921f66762e73301db26a4224c31ede072..305c732248b287b472f48e8f32c2548339779504 100644 (file)
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();
/* Save to LDAP */
function save()
{
+ /* Convert to string */
+ $this->gotoLpdEnable= $this->gotoLpdEnable?"Yes":"No";
+
plugin::save();
/* Strip out 'default' values */
}
}
- /* Convert to string */
- $this->gotoLpdEnable= $this->gotoLpdEnable?"yes":"no";
-
/* Write back to ldap */
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->dn);