From 868174e6ab1ba808b77879bbb0400c573e04ed32 Mon Sep 17 00:00:00 2001 From: Noizette Date: Sun, 16 Apr 2023 00:05:29 +0200 Subject: [PATCH] Remove utr8_decode call, PHP8 depreciation --- www/admin/pdf.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/www/admin/pdf.php b/www/admin/pdf.php index d692151..0e69b08 100644 --- a/www/admin/pdf.php +++ b/www/admin/pdf.php @@ -330,9 +330,9 @@ elseif ($f->type_facture == CERFA) $t['total_lettre'] = numfmt_create('fr_FR', \NumberFormatter::SPELLOUT)->format($f->total/100). ' euros'; - $t['d'] = utf8_decode($f->date_emission->format('d')); - $t['m'] = utf8_decode($f->date_emission->format('m')); - $t['Y'] = utf8_decode($f->date_emission->format('Y')); + $t['d'] = ($f->date_emission->format('d')); + $t['m'] = ($f->date_emission->format('m')); + $t['Y'] = ($f->date_emission->format('Y')); $t['forme'] = $f->contenu['forme']; $t['nature'] = $f->contenu['nature']; @@ -386,9 +386,9 @@ elseif ($f->type_facture == CERFA) $t['pos'] = 'left: 115.2mm;'; } - $t['d2'] = utf8_decode($f->date_echeance->format('d')); - $t['m2'] = utf8_decode($f->date_echeance->format('m')); - $t['Y2'] = utf8_decode($f->date_echeance->format('Y')); + $t['d2'] = ($f->date_echeance->format('d')); + $t['m2'] = ($f->date_echeance->format('m')); + $t['Y2'] = ($f->date_echeance->format('Y')); ob_start(); echo <<