From bb091760af0e5e50d97edcc224d99f6e56a79140 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 11 Jul 2022 17:11:28 -0700 Subject: [PATCH] Fixedd unclosed brace Signed-off-by: snipe --- app/Http/Controllers/SettingsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 379a325718..33afd47f83 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -1285,6 +1285,7 @@ class SettingsController extends Controller \Log::debug($migrate_output); $find_user = DB::table('users')->where('username', $user->username)->exists(); + if (!$find_user){ \Log::warning('Attempting to restore user: ' . $user->username); $new_user = $user->replicate(); @@ -1300,8 +1301,7 @@ class SettingsController extends Controller \Auth::logout(); return redirect()->route('login')->with('success', 'Your system has been restored. Please login again.'); - } - + } else { return redirect()->route('settings.backups.index')->with('error', trans('admin/settings/message.backup.file_not_found')); }