Skip to content

Commit

Permalink
Init array key if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
madisx committed Mar 29, 2020
1 parent 6d8933f commit fda60be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InvoiceGeneral.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function addRow(\Infira\MeritAktiva\InvoiceRow $Row)
$rows[] = $Row;
$this->setRows($rows);
$taxID = $Row->getTaxID();
if (array_key_exists($taxID, $this->taxAmounts))
if (!array_key_exists($taxID, $this->taxAmounts))
{
$this->taxAmounts[$taxID] = 0;
}
Expand Down

0 comments on commit fda60be

Please sign in to comment.