1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Fixes for client settings cast

This commit is contained in:
David Bomba 2023-03-06 20:15:14 +11:00
parent fb8db15532
commit ff8be6ab31

View File

@ -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