Commit e5df42e5 by 冷斌

fix bug

parent cff06468
...@@ -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['votes']) ? $zhubo['votes'] : "0"; $lists[$k]['votes'] = !empty($zhubo['votes']) ? (int)$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