diff --git a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc
index 83f8bd74a4df576d1e6d130318c4439c4a0f2ed4..76b2a611137f059b4db4bf1280405c22b3b9c88c 100644 (file)
$ldap= $this->config->get_ldap_link();
$ldap->rmdir ($this->dn);
new log("remove","addressbook/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
- show_ldap_error($ldap->get_error(), sprintf(_("Removing of addressbook entry '%s' failed."),$this->dn));
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_DEL, get_class()));
+ }
new log("remove","addressbook/".get_class($this),$this->dn,array(),"Address book object'".$this->dn."' has been removed");
} else {
session::un_set('saved_start');
} else {
/* Errors found, show message */
- show_errors ($message);
+ msgDialog::displayChecks($message);
}
}
$ldap->cd ($this->dn);
$this->cleanup();
$ldap->$mode ($this->attrs);
- if (show_ldap_error($ldap->get_error(), sprintf(_("Removing of addressbook entry '%s' failed."),$this->dn))){
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_DEL, get_class()));
return (1);
}