Skip to content

Commit 93339b9

Browse files
committed
wip
1 parent 57d4b8e commit 93339b9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@
1414
.DS_Store
1515
/ZonPHP/parameters_dev.php
1616
/.vscode/
17-
/ZonPHP/NUTHTAL/
17+
/ZonPHP/WR1/
18+
/ZonPHP/WR11/
19+
/ZonPHP/WR2/
20+
/ZonPHP/WR3/

ZonPHP/importer/sunny_explorer_multi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function mapLinesToDBValues(array $lines, string $name, $lastImportDate, $import
3434
}
3535
if ($lineCounter > 8) {
3636
$lineValues = explode(";", $line);
37-
if (count($lineValues) > 4) {
37+
if ( count($lineValues) >= (($index+1) * 2 + 1) ) {
3838
// first data row get initial $minkWhCounter value from first line
3939
if ($lineCounter == 9) {
4040
$minkWhCounter = str_replace(',', '.', $lineValues[($index * 2) + 1]);

0 commit comments

Comments
 (0)