Fix addresses in user profiles. Closes #1061
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 3 Jun 2010 16:40:32 +0000 (18:40 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jun 2010 12:24:11 +0000 (14:24 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
plugins/function.display_address.php

index 28c6c4f..32cf19c 100644 (file)
@@ -60,7 +60,7 @@ function smarty_function_display_address($param, &$smarty)
         .   urlencode(implode(", ", $lines) . " ($idt)")
         . "\"><img src=\"images/icons/map.gif\" alt=\"Google Maps\" title=\"Carte\"/></a>";
     $comment = "";
-    if ($param['adr']['comment'] != "")
+    if ($adr->comment != "")
     {
         $commentHtml = str_replace(array('&', '"'), array('&amp;', '&quot;'), $adr->comment);
         $commentJs = str_replace(array('\\', '\''), array('\\\\', '\\\''), $commentHtml);