Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-10-01 16:10:35 +02:00
parent 29a2601b9d
commit 1ff8b879a8

View File

@ -37,11 +37,14 @@ class InfoBox
{ {
global $conf; global $conf;
if($conf->global->MAIN_FEATURES_LEVEL < 2) if (empty($conf->global->MAIN_FEATURES_LEVEL) || $conf->global->MAIN_FEATURES_LEVEL < 2)
{
return array(0 => 'Home'); return array(0 => 'Home');
}
else else
{ {
return array(0 => 'Home', return array(
0 => 'Home',
1 => 'userhome', 1 => 'userhome',
2 => 'membersindex', 2 => 'membersindex',
3 => 'thirdpartiesindex', 3 => 'thirdpartiesindex',
@ -67,7 +70,9 @@ class InfoBox
23 => 'specialexpensesindex', 23 => 'specialexpensesindex',
24 => 'expensereportindex', 24 => 'expensereportindex',
25 => 'mailingindex', 25 => 'mailingindex',
26 => 'opensurveyindex'); 26 => 'opensurveyindex',
27 => 'accountancyindex'
);
} }
} }