diff --git a/components/feed_item.php b/components/feed_item.php index d75a03d..d9ad659 100644 --- a/components/feed_item.php +++ b/components/feed_item.php @@ -188,6 +188,9 @@ protected function getActionData( NEWSFEED_CLASS_Action $action ) "userIds" => $creatorIdList, 'createTime' => $action->getCreateTime() ); + + //init the var to avoid notice + if(!isset($shouldExtend)) { $shouldExtend = ''; } $shouldExtend = $this->displayType == NEWSFEED_CMP_Feed::DISPLAY_TYPE_ACTIVITY && $lastActivity !== null; @@ -746,4 +749,4 @@ public function renderMarkup( $cycle = null ) return $this->render(); } -} \ No newline at end of file +}