X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fphpscheduleit%2Fpersonal%2Fconnectivity%2Fphpscheduleit%2Fclass_phpscheduleitAccount.inc;h=521dbf71c5fee28a0af2a1a201178b9817559c11;hb=362e2b9a81d3bde32512811ede7525ab017eead5;hp=41454ea7c78af2064dd966d698420824955fea39;hpb=95c92d67f0ab7660a995607fd264a6ea1f2aa798;p=gosa.git diff --git a/gosa-plugins/phpscheduleit/personal/connectivity/phpscheduleit/class_phpscheduleitAccount.inc b/gosa-plugins/phpscheduleit/personal/connectivity/phpscheduleit/class_phpscheduleitAccount.inc index 41454ea7c..521dbf71c 100644 --- a/gosa-plugins/phpscheduleit/personal/connectivity/phpscheduleit/class_phpscheduleitAccount.inc +++ b/gosa-plugins/phpscheduleit/personal/connectivity/phpscheduleit/class_phpscheduleitAccount.inc @@ -82,7 +82,9 @@ class phpscheduleitAccount extends plugin $this->attributes, "Save"); $this->cleanup(); $ldap->modify ($this->attrs); - show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PHPscheduleit account with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_MOD, get_class())); + } if($this->is_account){ new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); @@ -137,7 +139,9 @@ class phpscheduleitAccount extends plugin new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); } - show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PHPscheduleit account with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class())); + } /* Optionally execute a command after we're done */ if ($this->initially_was_account == $this->is_account){