Fix warning

This commit is contained in:
Laurent Destailleur
2023-11-05 18:27:53 +01:00
parent e2e9a330fa
commit f9d520b29d
2 changed files with 4 additions and 2 deletions

View File

@@ -5278,7 +5278,9 @@ function dol_print_error($db = '', $error = '', $errors = null)
print 'This website or feature is currently temporarly not available or failed after a technical error.<br><br>This may be due to a maintenance operation. Current status of operation ('.dol_print_date(dol_now(), 'dayhourrfc').') are on next line...<br><br>'."\n";
print $langs->trans("DolibarrHasDetectedError").'. ';
print $langs->trans("YouCanSetOptionDolibarrMainProdToZero");
define("MAIN_CORE_ERROR", 1);
if (!defined("MAIN_CORE_ERROR")) {
define("MAIN_CORE_ERROR", 1);
}
}
dol_syslog("Error ".$syslog, LOG_ERR);