2
0
forked from Wavyzz/dolibarr

add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 01:41:27 +02:00
parent 416e6dd90d
commit ee6fadd0d5
565 changed files with 5190 additions and 8632 deletions

View File

@@ -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;