From a08dc64f51abbc95e7b49e433c990f6ef650885d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 7 Jun 2010 10:32:10 +0200 Subject: [PATCH] Fixes addresses display on profile (Closes #1068). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- ChangeLog | 1 + core | 2 +- modules/profile/addresses.inc.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4326dc0..d83d3fd 100644 --- 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 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 7f8e81bbf66f2fe959e93f865fd74a08e20e9fee +Subproject commit 023024ebd592cc89ab1ded64766ad5246b7c054c diff --git a/modules/profile/addresses.inc.php b/modules/profile/addresses.inc.php index 8f7614d..6ff3f24 100644 --- a/modules/profile/addresses.inc.php +++ b/modules/profile/addresses.inc.php @@ -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; } -- 2.1.4