summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e7e87a)
raw | patch | inline | side by side (parent: 4e7e87a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 8 Mar 2008 17:22:25 +0000 (17:22 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 8 Mar 2008 17:22:25 +0000 (17:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9467 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index 3a2968ae71732ecc2d99b6464e1d755a70896537..b843bc6410f179d44bf07e9f545b9b118d231b3d 100644 (file)
}
-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"),"<i>".$addon."</i>", "<br><br>$message"),ERROR_DIALOG);
- }
- }
- return TRUE;
- } else {
- return FALSE;
- }
-}
-
-
/* Removes a given objectClass from the attrs entry */
function remove_objectClass($classes, &$attrs)
{