mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Enforce types when checking values of boolean
This commit is contained in:
parent
92001dae7b
commit
8916c57777
@ -138,7 +138,7 @@ class InvoiceService
|
||||
{
|
||||
// $this->invoice = (new UpdateBalance($this->invoice, $balance_adjustment, $is_draft))->run();
|
||||
|
||||
if ($this->invoice->is_deleted) {
|
||||
if ((bool)$this->invoice->is_deleted !== false) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user