From 9f0e319a03bcaa1866132c4424b1ad8fc2b6857a Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 12 Apr 2024 16:47:34 +0200 Subject: [PATCH] Fix php8.1 --- modules/primanota/movimenti.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/primanota/movimenti.php b/modules/primanota/movimenti.php index de66a66cd..cd90a899e 100755 --- a/modules/primanota/movimenti.php +++ b/modules/primanota/movimenti.php @@ -21,7 +21,7 @@ include_once __DIR__.'/../../core.php'; use Modules\Fatture\Fattura; -function renderRiga($id, $riga, &$totale_dare, &$totale_avere) +function renderRiga($id, $riga, $totale_dare = null, $totale_avere = null) { // Conto echo ' @@ -50,7 +50,7 @@ function renderRiga($id, $riga, &$totale_dare, &$totale_avere) $totale_avere += ($riga['avere'] ?: 0); } -function renderTabella($nome, $righe, &$totale_dare, &$totale_avere) +function renderTabella($nome, $righe, $totale_dare = null, $totale_avere = null) { global $counter;