diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc
index 3750b94abeda8140d7e01b585d39c3c3c3d403a3..a92a9cbb7d7295c5e3857d5177064f7049e1ebf6 100644 (file)
$message[]= msgPool::invalid(_("Serial"),"","","0x1234");
}
if(empty($this->vendor) || !$this->is_2byteHex($this->vendor)){
- $message[]= msgPool::invalid(_("Vender ID"),"","","0x1234");
+ $message[]= msgPool::invalid(_("Vendor ID"),"","","0x1234");
}
/* Check if entry already exists */
$ldap->search("(&(objectClass=gotoEnvironment)(gotoHotplugDeviceDN=".$this->dn."))",array("cn","gotoHotplugDeviceDN"));
$skip = FALSE;
$obj = array();
- while($cnt && $attrs = $ldap->fetch()){
+ while($attrs = $ldap->fetch()){
$obj[$ldap->getDN()]= $attrs['cn'][0];
$skip =TRUE;
}