forked from Wavyzz/dolibarr
add new rule
This commit is contained in:
@@ -90,8 +90,7 @@ if ($action == 'setvalue' && $user->admin)
|
||||
$db->commit();
|
||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
$db->rollback();
|
||||
dol_print_error($db);
|
||||
}
|
||||
@@ -396,8 +395,7 @@ if (function_exists("ldap_connect"))
|
||||
print img_picto('', 'info').' ';
|
||||
print '<font class="ok">'.$langs->trans("LDAPSynchroOK").'</font><br>';
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
print img_picto('', 'error').' ';
|
||||
print '<font class="error">'.$langs->trans("LDAPSynchroKOMayBePermissions");
|
||||
print ': '.$ldap->error;
|
||||
@@ -410,8 +408,7 @@ if (function_exists("ldap_connect"))
|
||||
print nl2br($ldap->dump_content($dn, $info));
|
||||
print "\n<br>";
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
print img_picto('', 'error').' ';
|
||||
print '<font class="error">'.$langs->trans("LDAPSynchroKO");
|
||||
print ': '.$ldap->error;
|
||||
@@ -477,8 +474,7 @@ if (function_exists("ldap_connect"))
|
||||
$liste[$key] = $label;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
setEventMessages($ldap->error, $ldap->errors, 'errors');
|
||||
}
|
||||
|
||||
@@ -491,8 +487,7 @@ if (function_exists("ldap_connect"))
|
||||
print "=> ".count($liste)." records<br>\n";
|
||||
print "\n<br>";
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
print img_picto('', 'error').' ';
|
||||
print '<font class="error">'.$langs->trans("LDAPSynchroKO");
|
||||
print ': '.$ldap->error;
|
||||
|
||||
Reference in New Issue
Block a user