From: Stéphane Jacob Date: Sun, 3 Apr 2011 12:42:50 +0000 (+0200) Subject: Fixes job's address display. X-Git-Tag: xorg/1.1.1~37^2~12 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e1ff3b4ffe4650f20e84590c8b53504311270472;p=platal.git Fixes job's address display. Signed-off-by: Stéphane Jacob --- diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index 6192575..2de1e6b 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -644,7 +644,7 @@ class ProfileJobs extends ProfileField { $a = $addresses->get(Profile::ADDRESS_PRO); foreach ($a as $address) { - if ($address->type == Address::LINK_JOB && array_key_exists($address->jobid, $this->jobs)) { + if ($address->type == Address::LINK_JOB && array_key_exists($address->id, $this->jobs)) { $this->jobs[$address->id]->setAddress($address); } }