Update main.inc.php

This commit is contained in:
Laurent Destailleur 2020-04-22 14:11:03 +02:00 committed by GitHub
parent f4d1ca94b3
commit 4777c74366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2367,7 +2367,7 @@ function main_area($title = '')
if (!empty($conf->global->MAIN_ONLY_LOGIN_ALLOWED)) print info_admin($langs->trans("WarningYouAreInMaintenanceMode", $conf->global->MAIN_ONLY_LOGIN_ALLOWED));
// Permit to add user company information on each printed document by set SHOW_SOCINFO_ON_PRINT
if ($conf->global->SHOW_SOCINFO_ON_PRINT && GETPOST('optioncss', 'aZ09') == 'print' && empty(GETPOST('disable_show_socinfo_on_print', 'az09')))
if (! empty($conf->global->SHOW_SOCINFO_ON_PRINT) && GETPOST('optioncss', 'aZ09') == 'print' && empty(GETPOST('disable_show_socinfo_on_print', 'az09')))
{
global $hookmanager;
$hookmanager->initHooks(array('showsocinfoonprint'));