Code

Removed show_ldap_error() calls
[gosa.git] / gosa-plugins / fai / admin / fai / class_faiProfile.inc
index 5383da68a83264bb63acdfaa8028125cec8796fa..7f337fd803976e13933bda2dfcbfc798513c987e 100644 (file)
@@ -443,7 +443,9 @@ class faiProfile extends plugin
       new log("create","fai/".get_class($this),$this->dn,$this->attributes);
     }
  
-    show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/profile with dn '%s' failed."),$this->dn));
+    if (!$ldap->success()){
+      msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
+    }
   }