lvhao 2 dní pred
rodič
commit
6434c7d894
1 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  1. 6 1
      core/CoreApp/controllers/Whlabel_bh.php

+ 6 - 1
core/CoreApp/controllers/Whlabel_bh.php

@@ -2090,7 +2090,12 @@ class Whlabel_bh extends Start_Controller {
 			$total_num += $v['bhnum'];
 		}
 		$wbids = array_values($orderinfo_list);
-		$over_num = $this->whlabel_bh_transfer->find_count(" status = 2 and wbid in (".implode(",",$wbids).")");
+		if(empty($wbids)){
+			$over_num = 0;
+		}else{
+			$over_num = $this->whlabel_bh_transfer->find_count(" status = 2 and wbid in (".implode(",",$wbids).")");
+		}
+		
 
 		$this->data['total_num'] = $total_num;
 		$this->data['wwcsl'] = $total_num - $over_num;