mUserId; $statuses = feed_get_status( $listHash ); $gBitSmarty->assign( 'statuses', $statuses); foreach ($statuses as $status){ $commentContentId = 'comment_'.$status['content_id']; if(!empty($_REQUEST[$commentContentId])){ //then there is a reply to this comment and break, we only handle one at a time $reply = new LibertyComment(); $pParamHash['root_id'] = $status['content_id']; $pParamHash['parent_id'] = $status['content_id']; $pParamHash['comment_data'] = $_REQUEST[$commentContentId]; $pParamHash['title'] = substr($_REQUEST[$commentContentId],0,20); $reply->storeComment($pParamHash); $statuses = feed_get_status( $listHash ); $gBitSmarty->assign( 'statuses', $statuses); break; } }