|
@@ -28,9 +28,8 @@ class User_smsgroup_adminAction extends Action{
|
|
|
|
|
|
$list = $admin->select_sms_user_group($where);
|
|
|
foreach($list as &$item) {
|
|
|
- $where .= " and group_name='{$item['name']}'";
|
|
|
- echo $where . "<br />";
|
|
|
- $count = $admin->selectSmsCustomerCount($where);
|
|
|
+ $condition = "where uid='{$_SESSION['user_infos']['id']}' and group_name='{$item['name']}'";
|
|
|
+ $count = $admin->selectSmsCustomerCount($condition);
|
|
|
$count = empty($count) ? 0 : $count;
|
|
|
$item['count'] = $count;
|
|
|
}
|