From 69c9557db4fe8dcbee9de684a3a095e4bcbaac45 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 1 Jul 2010 13:39:54 +0200 Subject: [PATCH] Fix php errors at the end of the feed of the carnet. Signed-off-by: Florent Bruneau --- modules/carnet/feed.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.1.4