mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for client settings cast
This commit is contained in:
parent
fb8db15532
commit
ff8be6ab31
@ -88,6 +88,9 @@ class ClientSettings extends BaseSettings
|
|||||||
return $company_settings;
|
return $company_settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_array($client_settings))
|
||||||
|
$client_settings = (object)$client_settings;
|
||||||
|
|
||||||
foreach ($company_settings as $key => $value) {
|
foreach ($company_settings as $key => $value) {
|
||||||
/* pseudo code
|
/* pseudo code
|
||||||
if the property exists and is a string BUT has no length, treat it as TRUE
|
if the property exists and is a string BUT has no length, treat it as TRUE
|
||||||
|
Loading…
Reference in New Issue
Block a user