mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04: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;
|
||||
}
|
||||
|
||||
if(is_array($client_settings))
|
||||
$client_settings = (object)$client_settings;
|
||||
|
||||
foreach ($company_settings as $key => $value) {
|
||||
/* pseudo code
|
||||
if the property exists and is a string BUT has no length, treat it as TRUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user