Commit 78f682d1 by 冷斌

fix bug

parent b13f13af
......@@ -50,7 +50,7 @@ class LiveController extends AdminbaseController {
->field('sum(votes) as votes')
->where("action = 'sendgift' and showid = '{$v['showid']}'")
->find();
$lists[$k]['votes'] = !$zhubo ? $zhubo['votes'] : 0;
$lists[$k]['votes'] = !empty($zhubo) ? $zhubo['votes'] : 0;
}
$this->assign('config', $config);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment