north 8 жил өмнө
parent
commit
c87d71287f

+ 1 - 1
www/protected/services/ExcelToArrayService.php

@@ -112,7 +112,7 @@ class ExcelToArrayService extends Service
                 $technicians = '';
                 $server_date = date('Y-m-d',$value['booking_time']);
                 $server_time = date('H:i:s',$value['booking_time']);
-                $tech_count = count($value['technicians']);
+                $tech_count = count($value['technicians'])>0?count($value['technicians']):1;
                 foreach($value['technicians'] as $k => $v){
                     $technicians .= $v['technician_name'].'  ';