Fixes addresses display on profile (Closes #1068).
authorStéphane Jacob <sj@m4x.org>
Mon, 7 Jun 2010 08:32:10 +0000 (10:32 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 7 Jun 2010 08:33:40 +0000 (10:33 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
core
modules/profile/addresses.inc.php

index 4326dc0..d83d3fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,7 @@ Bug/Wish:
         - #450: Adds marital name, thus ordinary name can be any name      -JAC
         - #670: Adds Outlook CSV format for birthdays and contacts         -Car
         - #891: Improves education display                                 -JAC
+        - #1068: Fixes addresses display on profile                        -JAC
         - #1081: Sorts language alphabetically in skill tab                -Car
 
     * Survey:
diff --git a/core b/core
index 7f8e81b..023024e 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 7f8e81bbf66f2fe959e93f865fd74a08e20e9fee
+Subproject commit 023024ebd592cc89ab1ded64766ad5246b7c054c
index 8f7614d..6ff3f24 100644 (file)
@@ -64,7 +64,7 @@ class ProfileSettingAddress extends ProfileSettingGeocoding
             }
         }
         if ($current == 0 && count($value) > 0) {
-            foreach ($value as $address) {
+            foreach ($value as &$address) {
                 $address['current'] = true;
                 break;
             }