From e129daef07842ce6aa0ec6f5b094400eb17809ee Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Thu, 15 Sep 2022 06:33:43 +0200 Subject: [PATCH] Fix PHP8 Warning --- htdocs/core/lib/accounting.lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/lib/accounting.lib.php b/htdocs/core/lib/accounting.lib.php index 21afb5f3490..4dbdd9f5be8 100644 --- a/htdocs/core/lib/accounting.lib.php +++ b/htdocs/core/lib/accounting.lib.php @@ -274,6 +274,9 @@ function getDefaultDatesForTransfer() { global $db, $conf; + $pastmonth = 0; + $pastmonthyear = 0; + // Period by default on transfer (0: previous month | 1: current month | 2: fiscal year) $periodbydefaultontransfer = (empty($conf->global->ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER) ? 0 : $conf->global->ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER); if ($periodbydefaultontransfer == 2) {