mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for falsey conditions
This commit is contained in:
parent
54c97a8755
commit
50000144c6
@ -184,7 +184,7 @@ trait DesignHelpers
|
||||
|
||||
$key = array_search(sprintf('%s%s.tax', '$', $type), $this->context['pdf_variables']["{$type}_columns"], true);
|
||||
|
||||
if ($key) {
|
||||
if ($key !== false) {
|
||||
array_splice($this->context['pdf_variables']["{$type}_columns"], $key, 1, $taxes);
|
||||
}
|
||||
}
|
||||
@ -342,7 +342,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
$key = array_search(sprintf('%s%s.description', '$', $type), $this->context['pdf_variables']["{$type}_columns"], true);
|
||||
|
||||
if ($key) {
|
||||
if ($key !== false) {
|
||||
array_splice($this->context['pdf_variables']["{$type}_columns"], $key + 1, 0, $custom_columns);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user