Fixes for company settings saver

This commit is contained in:
David Bomba 2022-03-25 08:25:06 +11:00
parent 61d0276147
commit ea30be3a51
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ trait CompanySettingsSaver
} }
//try casting floats here //try casting floats here
if($value == 'float'){ if($value == 'float' && property_exists($settings, $key)){
$settings->{$key} = floatval($settings->{$key}); $settings->{$key} = floatval($settings->{$key});
} }

View File

@ -74,7 +74,7 @@
{{-- Feel free to push anything to header using @push('header') --}} {{-- Feel free to push anything to header using @push('header') --}}
@stack('head') @stack('head')
@if((bool) \App\Utils\Ninja::isSelfHost() && !empty($client->getSetting('portal_custom_head'))) @if((isset($account) && $account->isPaid()) || ((bool) \App\Utils\Ninja::isSelfHost() && !empty($client->getSetting('portal_custom_head'))))
<div class="py-1 text-sm text-center text-white bg-primary"> <div class="py-1 text-sm text-center text-white bg-primary">
{!! $client->getSetting('portal_custom_head') !!} {!! $client->getSetting('portal_custom_head') !!}
</div> </div>