From d4a67c00bddfeb3388623df68a58ea22b6e942b5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Jul 2024 17:52:49 +0200 Subject: [PATCH] Fix phan --- htdocs/core/boxes/box_factures_imp.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/core/boxes/box_factures_imp.php b/htdocs/core/boxes/box_factures_imp.php index 4c7473046d5..f5ac8185349 100644 --- a/htdocs/core/boxes/box_factures_imp.php +++ b/htdocs/core/boxes/box_factures_imp.php @@ -139,10 +139,9 @@ class box_factures_imp extends ModeleBoxes while ($line < min($num, $this->max)) { $objp = $this->db->fetch_object($result); - $datelimite = $this->db->jdate($objp->datelimite); $date = $this->db->jdate($objp->date); $datem = $this->db->jdate($objp->tms); - $datelimit = $this->db->jdate(datelimite); + $datelimit = $this->db->jdate($obj->datelimite); $facturestatic->id = $objp->facid; $facturestatic->ref = $objp->ref; @@ -182,7 +181,7 @@ class box_factures_imp extends ModeleBoxes $late = ''; if ($facturestatic->hasDelay()) { // @phan-suppress-next-line PhanPluginPrintfVariableFormatString - $late = img_warning(sprintf($l_due_date, dol_print_date($datelimite, 'day', 'tzuserrel'))); + $late = img_warning(sprintf($l_due_date, dol_print_date($datelimit, 'day', 'tzuserrel'))); } $this->info_box_contents[$line][] = array( @@ -204,8 +203,8 @@ class box_factures_imp extends ModeleBoxes ); $this->info_box_contents[$line][] = array( - 'td' => 'class="center nowraponall" title="'.dol_escape_htmltag($langs->trans("DateDue").': '.dol_print_date($datelimite, 'day', 'tzuserrel')).'"', - 'text' => dol_print_date($datelimite, 'day', 'tzuserrel'), + 'td' => 'class="center nowraponall" title="'.dol_escape_htmltag($langs->trans("DateDue").': '.dol_print_date($datelimit, 'day', 'tzuserrel')).'"', + 'text' => dol_print_date($datelimit, 'day', 'tzuserrel'), ); $this->info_box_contents[$line][] = array(