Commit 69e05ac5 authored by Jack Stupple's avatar Jack Stupple

json encode the user agent

parent 54f27518
......@@ -72,7 +72,7 @@ class PlayerController extends Controller
$player->language_id = $request->input('language_id', $player->language_id);
$player->budget_intro_completed = $budget_intro_completed;
$player->calendar_intro_completed = $calendar_intro_completed;
$player->user_agent = $request->input('user_agent', $player->user_agent);
$player->user_agent = json_encode($request->input('user_agent', json_decode($player->user_agent)));
$player->save();
if ((!$player->character_id || $player->character_id !== $previous_character) && $player->progress !== 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment