Commit cff06468 by 冷斌

fix bug

parent 78f682d1
...@@ -50,7 +50,7 @@ class LiveController extends AdminbaseController { ...@@ -50,7 +50,7 @@ class LiveController extends AdminbaseController {
->field('sum(votes) as votes') ->field('sum(votes) as votes')
->where("action = 'sendgift' and showid = '{$v['showid']}'") ->where("action = 'sendgift' and showid = '{$v['showid']}'")
->find(); ->find();
$lists[$k]['votes'] = !empty($zhubo) ? $zhubo['votes'] : 0; $lists[$k]['votes'] = !empty($zhubo['votes']) ? $zhubo['votes'] : "0";
} }
$this->assign('config', $config); $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