From 20102ef45b7736c6e943de97ee605bda3359ee2b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 12 Jul 2017 10:53:25 +0300 Subject: [PATCH] Fix for importing older JSON version --- app/Services/ImportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php index 48b32e6dd0d9..a5644a862fd4 100644 --- a/app/Services/ImportService.php +++ b/app/Services/ImportService.php @@ -174,7 +174,7 @@ class ImportService $account->save(); $emailSettings = $account->account_email_settings; - $emailSettings->fill($settings['account_email_settings']); + $emailSettings->fill(isset($settings['account_email_settings']) ? $settings['account_email_settings'] : $settings); $emailSettings->save(); }