FIX php8 compatibility
This commit is contained in:
parent
1ba289f66d
commit
41ed2967c5
@ -205,7 +205,7 @@ print '<table class="noborder">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Parameter").'</td>';
|
||||
print '<td>'.$langs->trans("Value").'</td>';
|
||||
if (empty($conf->multicompany->enabled) || !$user->entity) {
|
||||
if (!isModEnabled('multicompany') || !$user->entity) {
|
||||
print '<td>'.$langs->trans("Entity").'</td>'; // If superadmin or multicompany disabled
|
||||
}
|
||||
print "</tr>\n";
|
||||
@ -218,7 +218,7 @@ $sql .= ", type";
|
||||
$sql .= ", note";
|
||||
$sql .= ", entity";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."const";
|
||||
if (empty($conf->multicompany->enabled)) {
|
||||
if (!isModEnabled('multicompany')) {
|
||||
// If no multicompany mode, admins can see global and their constantes
|
||||
$sql .= " WHERE entity IN (0,".$conf->entity.")";
|
||||
} else {
|
||||
@ -239,7 +239,7 @@ if ($resql) {
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$obj->name.'</td>'."\n";
|
||||
print '<td>'.$obj->value.'</td>'."\n";
|
||||
if (empty($conf->multicompany->enabled) || !$user->entity) {
|
||||
if (!isModEnabled('multicompany') || !$user->entity) {
|
||||
print '<td>'.$obj->entity.'</td>'."\n"; // If superadmin or multicompany disabled
|
||||
}
|
||||
print "</tr>\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user