From: Florent Bruneau Date: Mon, 11 Oct 2010 14:53:22 +0000 (+0200) Subject: Fix php 'recoverable errors' when saving changes in the profile's job X-Git-Tag: xorg/1.0.1~59 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4dbd61842c1bc968d299fb26b80d80361208be3f;p=platal.git Fix php 'recoverable errors' when saving changes in the profile's job page. Signed-off-by: Florent Bruneau --- 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']