Fix encoding issues in addresses in the pdf of the contacts. (Closes #1108)
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 23 Jun 2010 07:58:16 +0000 (09:58 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 23 Jun 2010 08:13:47 +0000 (10:13 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/carnet/contacts.pdf.inc.php

index 09ed3b4..2ceea8d 100644 (file)
@@ -187,12 +187,7 @@ class ContactsPDF extends FPDF
             $l .= 'principale';
         }
 
-        $r = utf8_decode($a->text);
-/*        $r = trim("$r\n".$a['adr1']);
-        $r = trim("$r\n".$a['adr2']);
-        $r = trim("$r\n".$a['adr3']);
-        $r = trim("$r\n".trim($a['postcode'].' '.$a['city']));
-*/
+        $r = $a->text;
         $this->TableRow($l, $r);
 /*
         if (!empty($a['tels'])) {