Browse Source

提交数据

lvhao 23 hours ago
parent
commit
b8cc6cfb8f
1 changed files with 3 additions and 0 deletions
  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);