@@ -56,6 +56,9 @@ $this->ci = &get_instance();
$where = " status = 0 ";
$where .= " and id in (".implode(",",$usersp).") ";
+ if(empty($order)){
+ $order = "id asc";
+ }
$result = $this->ci->shop->find_all($where,'*',$order,0,$num);