From 4dbd61842c1bc968d299fb26b80d80361208be3f Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 11 Oct 2010 16:53:22 +0200 Subject: [PATCH] Fix php 'recoverable errors' when saving changes in the profile's job page. Signed-off-by: Florent Bruneau --- modules/profile/jobs.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index 719d663..7c65870 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -288,10 +288,11 @@ class ProfileSettingJob implements ProfileSetting } } - public function getText($value) { + public function getText($value) + { $jobs = array(); foreach ($value as $id => $job) { - $address = Address::formArrayToString($job['w_address']); + $address = Address::formArrayToString(array($job['w_address'])); $phones = Phone::formArrayToString($job['w_phone']); // TODO: add jobterms here. $jobs[] = 'Entreprise : ' . $job['name'] -- 2.1.4