Fix warnings

This commit is contained in:
Laurent Destailleur
2023-11-27 13:26:44 +01:00
parent 06736918de
commit 1d589fd74e
45 changed files with 241 additions and 240 deletions

View File

@@ -87,14 +87,14 @@ class AdherentTest extends PHPUnit\Framework\TestCase
global $conf,$user,$langs,$db;
$db->begin(); // This is to have all actions inside a transaction even if test launched without suite.
if (!empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION)) {
if (getDolGlobalString('MAIN_FIRSTNAME_NAME_POSITION')) {
print "\n".__METHOD__." Company must be setup to have name-firstname in order 'Firstname Lastname'\n";
die(1);
}
if (!empty($conf->global->MAIN_MODULE_LDAP)) {
if (getDolGlobalString('MAIN_MODULE_LDAP')) {
print "\n".__METHOD__." module LDAP must be disabled.\n"; die(1);
}
if (!empty($conf->global->MAIN_MODULE_MAILMANSPIP)) {
if (getDolGlobalString('MAIN_MODULE_MAILMANSPIP')) {
print "\n".__METHOD__." module MailmanSpip must be disabled.\n"; die(1);
}