From 501d5680eabf7b6f22719cd82f353e552b434a95 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Date: Tue, 15 Sep 2020 03:51:10 -0500 Subject: [PATCH] Fix [ch15188] 500 error --- app/Http/Controllers/SettingsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 8b69e5a6fe..402d29eb28 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -186,7 +186,7 @@ class SettingsController extends Controller Auth::login($user, true); $settings->save(); - if ('1' == get('email_creds')) { + if ($request->input('email_creds') == '1') { $data = []; $data['email'] = $user->email; $data['username'] = $user->username; @@ -347,7 +347,7 @@ class SettingsController extends Controller $setting->depreciation_method = $request->input('depreciation_method'); - if ('' != get('per_page')) { + if ($request->input('per_page') != '') { $setting->per_page = $request->input('per_page'); } else { $setting->per_page = 200; @@ -1149,7 +1149,7 @@ class SettingsController extends Controller public function postPurge(Request $request) { if (! config('app.lock_passwords')) { - if ('DELETE' == $request->get('confirm_purge')) { + if ('DELETE' == $request->input('confirm_purge')) { // Run a backup immediately before processing Artisan::call('backup:run'); Artisan::call('snipeit:purge', ['--force' => 'true', '--no-interaction' => true]);