Code

Updated preg_matches
[gosa.git] / plugins / admin / systems / class_terminalService.inc
index bd3ee4652e7e298531bdd814ef213d9868a208d3..305c732248b287b472f48e8f32c2548339779504 100644 (file)
@@ -194,6 +194,8 @@ class termservice extends plugin
     $this->hardware_list["automatic"]= _("automatic");
     ksort($this->hardware_list);
 
+    /* Convert gotoLpdEnable */
+    $this->gotoLpdEnable= preg_match("/yes/",$this->gotoLpdEnable);
 
       /* Load hardware list */
     $ldap= $this->config->get_ldap_link();
@@ -394,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 */