mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	Merge pull request #5574 from turbo124/v5-develop
Clean up company request
This commit is contained in:
		
						commit
						cae1df01ef
					
				@ -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)) {
 | 
			
		||||
 | 
			
		||||
@ -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)) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user