Skip to content

Commit

Permalink
Fix data type
Browse files Browse the repository at this point in the history
  • Loading branch information
renekorss committed Apr 20, 2023
1 parent 5065459 commit 56aafcf
Show file tree
Hide file tree
Showing 5 changed files with 275 additions and 275 deletions.
6 changes: 3 additions & 3 deletions bin/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ function debug($str)
$type = type($row);

if ($type === EHAK::COUNTIES) {
${$type}['EST'][] = [$row['Kood'], $row['Nimi']];
${$type}[1][] = [$row['Kood'], $row['Nimi']];
${$type}['EST'][] = [(string)$row['Kood'], $row['Nimi']];
${$type}[1][] = [(string)$row['Kood'], $row['Nimi']];
} else {
$countyId = $row['Vald'] !== '0000' ? $row['Vald'] : $row['Maakond'];
${$type}[$countyId][] = [$row['Kood'], $row['Nimi']];
${$type}[$countyId][] = [(string)$row['Kood'], $row['Nimi']];
}
}

Expand Down
Loading

0 comments on commit 56aafcf

Please sign in to comment.