add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 09:35:30 +02:00
parent f4011520a3
commit 85625a46bb
122 changed files with 1031 additions and 2128 deletions

View File

@@ -70,8 +70,7 @@ if ($action == 'setvalue' && $user->admin)
{
$db->commit();
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
}
else {
} else {
$db->rollback();
dol_print_error($db);
}
@@ -232,8 +231,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;
@@ -245,8 +243,7 @@ if (function_exists("ldap_connect"))
print "LDAP input file used for test:<br><br>\n";
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;