瀏覽代碼

提交数据

lvhao 21 小時之前
父節點
當前提交
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 .= " and id in  (".implode(",",$usersp).") ";
+	if(empty($order)){
+		$order = "id asc";
+	}
 	
     $result = $this->ci->shop->find_all($where,'*',$order,0,$num);