index e5e9c6fdf363ccd1b8d73a15852a41c90676e7b4..ad36377c53174a60260005accfbde831652cb380 100644 (file)
/* Hide all dns specific code, if dns is not available
*/
$DNSenabled = false;
- foreach($this->config->data['TABS']['SERVTABS'] as $tab){
+ foreach($this->config->data['TABS']['SERVERSERVICE'] as $tab){
if(preg_match("/^servdns$/",$tab['CLASS'])){
$this->DNSenabled = true;
}
while($attr = $ldap->fetch()){
$ldap->cd($attr['dn']);
$ldap->rmDir($attr['dn']);
- show_ldap_error("Record:".$ldap->get_error(), _("Removing terminal from DNS object failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of terminal/dns acoount with dn '%s' failed."),$this->dn));
}
*/
}
/* Display errors
*/
if($ldap->get_error() != "Success"){
- show_ldap_error("Record:".$ldap->get_error(), _("Saving terminal to DNS object failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of terminal/dns account with dn '%s' failed."),$this->dn));
}
}
}