afa преди 9 месеца
родител
ревизия
33d314ee08
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      application/admin/controller/product/Lists.php

+ 1 - 1
application/admin/controller/product/Lists.php

@@ -253,7 +253,7 @@ class Lists extends Backend
                     $val = $currentSheet->getCellByColumnAndRow($currentColumn, $currentRow)->getValue();
                     $values[] = is_null($val) ? '' : $val;
                 }
-                if(empty($values)) continue;
+                if(empty(array_filter($values))) continue;
                 $field =  implode('-', $values);
                 $row = $importregion::where('name', $field)->find();
                 if(!empty($row)){