Installation on 3.8.1 fails: Exception AccountRepository.php

This commit is contained in:
Hillel Coren 2017-11-10 12:22:10 +02:00
parent cc06f1b2c5
commit 522b694e49

View File

@ -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();