1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Clean up company request

This commit is contained in:
= 2021-05-02 20:15:11 +10:00
parent d69a4a3645
commit a76d584ae4
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ class StoreCompanyRequest extends Request
{
$input = $this->all();
if(strlen($input['portal_domain']) > 1)
if(array_key_exists('portal_domain', $input) && strlen($input['portal_domain']) > 1)
$input['portal_domain'] = str_replace("http:", "https:", $input['portal_domain']);
if (array_key_exists('google_analytics_url', $input)) {

View File

@ -60,7 +60,7 @@ class UpdateCompanyRequest extends Request
{
$input = $this->all();
if(strlen($input['portal_domain']) > 1)
if(array_key_exists('portal_domain', $input) && strlen($input['portal_domain']) > 1)
$input['portal_domain'] = str_replace("http:", "https:", $input['portal_domain']);
if (array_key_exists('settings', $input)) {