Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Only add prepare_for_sending if it's true
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas De Keukelaere committed Oct 12, 2021
1 parent 8b12bd5 commit 601dabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Invoice/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ public function toArray($forApi = false)
foreach ($this->getHistory() as $history) {
$data['history'][] = $history->toArray($forApi);
}
} else {
} elseif ($this->prepareForSending) {
$data['prepare_for_sending'] = $this->prepareForSending;
}

Expand Down

0 comments on commit 601dabf

Please sign in to comment.