caipin 5 年之前
父節點
當前提交
17edc7f694
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      protected/controller/ReceiptExtendController.php

+ 7 - 6
protected/controller/ReceiptExtendController.php

@@ -2666,13 +2666,14 @@ class ReceiptExtendController extends DooController {
     	Doo::loadClass ( 'XDeode' );
     	
     	$cidKeyIn=file_get_contents( "protected/config/receipt/summary.conf.ini");
-    	$cidKeyIn=explode(',', $cidKeyIn);$cidIn=array();
-    	foreach ($cidKeyIn as $key=>$value){
-    		$XDeode = new XDeode ( 5 );
-    		array_push($cidIn, $XDeode->decode($value));
+    	if(!empty($cidKeyIn)){
+	    	$cidKeyIn=explode(',', $cidKeyIn);$cidIn=array();
+	    	foreach ($cidKeyIn as $key=>$value){
+	    		$XDeode = new XDeode ( 5 );
+	    		array_push($cidIn, $XDeode->decode($value));
+	    	}
+	    	$cidIn=implode(',', $cidIn);
     	}
-    	$cidIn=implode(',', $cidIn);
-    	
     	$year= $this->get_args ( 'year' ) ? $this->get_args ( 'year' ) : date('Y');