From 95c92d67f0ab7660a995607fd264a6ea1f2aa798 Mon Sep 17 00:00:00 2001 From: cajus Date: Sat, 8 Mar 2008 17:22:25 +0000 Subject: [PATCH] Removed show_ldap_error git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9467 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 17 ----------------- 1 file changed, 17 deletions(-) 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) { -- 2.30.2