Fix php 'recoverable errors' when saving changes in the profile's job
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 11 Oct 2010 14:53:22 +0000 (16:53 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 11 Oct 2010 14:53:22 +0000 (16:53 +0200)
page.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/profile/jobs.inc.php

index 719d663..7c65870 100644 (file)
@@ -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']