Skip to content

Commit

Permalink
输出格式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
mousepad942 committed May 27, 2015
1 parent 2791046 commit 0037cd5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,17 @@ private function forumsForClass($fup){
$join_forum && $_fids = self::splitStringToArray($join_forum);
//
$forumList = $this->_getForumService()->getForumList();

$forumListTemp = array();
foreach($forumList as $k=>$v){
if( (int)$v['fup']!=$fup ){
unset($forumList[$k]);
}else{
$forumList[$k]['isjoin'] = in_array( $v['fid'],$_fids )!==false?true:false;
$forumList[$k]['logo_version'] = isset($this->forums_version[$v['fid']]) ? intval($this->forums_version[$v['fid']]) : 0;
$forumListTemp[] = $forumList[$k];
}
}
return $forumList;
return $forumListTemp;
}


Expand Down

0 comments on commit 0037cd5

Please sign in to comment.