fix bug 2016/01/25
修复引起前台个人中心显示异常的BUG
This commit is contained in:
@@ -13,7 +13,10 @@ class InfoController extends BaseController{
|
||||
|
||||
public function index(){
|
||||
$id = session('userId');
|
||||
$tmodel= M('setting');
|
||||
$title = $tmodel->where('id=1')->select();
|
||||
$info = M('info')->where('user_id='.$id)->select();
|
||||
$this->assign('title', $title);
|
||||
$this->assign('info',$info);
|
||||
$this->display();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user