浏览代码

提交数据

lvhao 23 小时之前
父节点
当前提交
b8cc6cfb8f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      core/CoreApp/libraries/Common.php

+ 3 - 0
core/CoreApp/libraries/Common.php

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