caipin 5 gadi atpakaļ
vecāks
revīzija
17edc7f694
1 mainītis faili ar 7 papildinājumiem un 6 dzēšanām
  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');