mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:29:03 -05:00 
			
		
		
		
	Installation on 3.8.1 fails: Exception AccountRepository.php #1738
This commit is contained in:
		
							parent
							
								
									05ad79e207
								
							
						
					
					
						commit
						443c2193d5
					
				@ -59,6 +59,7 @@ class AccountRepository
 | 
			
		||||
        $account->company_id = $company->id;
 | 
			
		||||
 | 
			
		||||
        // Set default language/currency based on IP
 | 
			
		||||
        if (\Cache::get('currencies')) {
 | 
			
		||||
            $data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $account->ip));
 | 
			
		||||
            $currencyCode = strtolower($data['geoplugin_currencyCode']);
 | 
			
		||||
            $countryCode = strtolower($data['geoplugin_countryCode']);
 | 
			
		||||
@ -83,6 +84,7 @@ class AccountRepository
 | 
			
		||||
            if ($language) {
 | 
			
		||||
                $account->language_id = $language->id;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $account->save();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user