1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00

Fix for Undefined array key 0 due to seed not being run

Fix for Undefined array key 0 due to seed not being run
This commit is contained in:
cp6 2022-03-09 23:16:15 +11:00
parent 2d8d3b5949
commit 8195fba66e
2 changed files with 20 additions and 20 deletions

View File

@ -105,18 +105,18 @@ class HomeController extends Controller
->get();
});
Session::put('timer_version_footer', $settings[0]->show_versions_footer);
Session::put('show_servers_public', $settings[0]->show_servers_public);
Session::put('show_server_value_ip', $settings[0]->show_server_value_ip);
Session::put('show_server_value_hostname', $settings[0]->show_server_value_hostname);
Session::put('show_server_value_price', $settings[0]->show_server_value_price);
Session::put('show_server_value_yabs', $settings[0]->show_server_value_yabs);
Session::put('show_server_value_provider', $settings[0]->show_server_value_provider);
Session::put('show_server_value_location', $settings[0]->show_server_value_location);
Session::put('default_currency', $settings[0]->default_currency);
Session::put('default_server_os', $settings[0]->default_server_os);
Session::put('due_soon_amount', $settings[0]->due_soon_amount);
Session::put('recently_added_amount', $settings[0]->recently_added_amount);
Session::put('timer_version_footer', $settings[0]->show_versions_footer ?? 1);
Session::put('show_servers_public', $settings[0]->show_servers_public ?? 0);
Session::put('show_server_value_ip', $settings[0]->show_server_value_ip ?? 0);
Session::put('show_server_value_hostname', $settings[0]->show_server_value_hostname ?? 0);
Session::put('show_server_value_price', $settings[0]->show_server_value_price ?? 0);
Session::put('show_server_value_yabs', $settings[0]->show_server_value_yabs ?? 0);
Session::put('show_server_value_provider', $settings[0]->show_server_value_provider ?? 0);
Session::put('show_server_value_location', $settings[0]->show_server_value_location ?? 0);
Session::put('default_currency', $settings[0]->default_currency ?? 'USD');
Session::put('default_server_os', $settings[0]->default_server_os ?? 1);
Session::put('due_soon_amount', $settings[0]->due_soon_amount ?? 6);
Session::put('recently_added_amount', $settings[0]->recently_added_amount ?? 6);
Session::save();
$pricing = json_decode(DB::table('pricings')->get(), true);

View File

@ -52,14 +52,14 @@ class ServerController extends Controller
->where('id', '=', 1)
->get();
Session::put('timer_version_footer', $settings[0]->show_versions_footer);
Session::put('show_servers_public', $settings[0]->show_servers_public);
Session::put('show_server_value_ip', $settings[0]->show_server_value_ip);
Session::put('show_server_value_hostname', $settings[0]->show_server_value_hostname);
Session::put('show_server_value_price', $settings[0]->show_server_value_price);
Session::put('show_server_value_yabs', $settings[0]->show_server_value_yabs);
Session::put('show_server_value_provider', $settings[0]->show_server_value_provider);
Session::put('show_server_value_location', $settings[0]->show_server_value_location);
Session::put('timer_version_footer', $settings[0]->show_versions_footer ?? 1);
Session::put('show_servers_public', $settings[0]->show_servers_public ?? 0);
Session::put('show_server_value_ip', $settings[0]->show_server_value_ip ?? 0);
Session::put('show_server_value_hostname', $settings[0]->show_server_value_hostname ?? 0);
Session::put('show_server_value_price', $settings[0]->show_server_value_price ?? 0);
Session::put('show_server_value_yabs', $settings[0]->show_server_value_yabs ?? 0);
Session::put('show_server_value_provider', $settings[0]->show_server_value_provider ?? 0);
Session::put('show_server_value_location', $settings[0]->show_server_value_location ?? 0);
Session::save();
if ((Session::get('show_servers_public') === 1)) {