From: Florent Bruneau Date: Thu, 1 Jul 2010 11:39:54 +0000 (+0200) Subject: Fix php errors at the end of the feed of the carnet. X-Git-Tag: xorg/1.0.1~15^2~82 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=69c9557db4fe8dcbee9de684a3a095e4bcbaac45;p=platal.git Fix php errors at the end of the feed of the carnet. Signed-off-by: Florent Bruneau --- diff --git a/modules/carnet/feed.inc.php b/modules/carnet/feed.inc.php index 01a097f..24ee58a 100644 --- a/modules/carnet/feed.inc.php +++ b/modules/carnet/feed.inc.php @@ -37,6 +37,7 @@ class CarnetFeedIterator implements PlIterator $date = $op->getDate($user); @$datetext = new Date($date); @$datetext = $datetext->format('%e %B %Y'); + $profile = $user->profile(); $infos[] = array('operation' => $op, 'title' => '[' . $op->getTitle(1) . '] - ' . $user->fullName() . ' le ' . $datetext, 'author' => $user->fullName(), @@ -48,7 +49,7 @@ class CarnetFeedIterator implements PlIterator 'dead' => $user->deathdate, 'profile' => $user->profile()->hrid(), 'user' => $user, - 'contact' => $owner->isContact($user)); + 'contact' => $owner->isContact($profile)); } } $this->it = PlIteratorUtils::fromArray($infos);