From: cajus Date: Sat, 8 Mar 2008 17:22:25 +0000 (+0000) Subject: Removed show_ldap_error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95c92d67f0ab7660a995607fd264a6ea1f2aa798;p=gosa.git Removed show_ldap_error git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9467 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 3a2968ae7..b843bc641 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2654,23 +2654,6 @@ function add_objectClass($classes, &$attrs) } -function show_ldap_error($message, $addon= "") -{ - if (!preg_match("/Success/i", $message)){ - if ($addon == ""){ - msg_dialog::display(_("LDAP error:"), $message, ERROR_DIALOG); - } else { - if(!preg_match("/No such object/i",$message)){ - msg_dialog::display(_("LDAP error"), sprintf(_("Plugin '%s':%s"),"".$addon."", "

$message"),ERROR_DIALOG); - } - } - return TRUE; - } else { - return FALSE; - } -} - - /* Removes a given objectClass from the attrs entry */ function remove_objectClass($classes, &$attrs) {