Commit c205c745 authored by hisuinohoshi's avatar hisuinohoshi

bugfix

parent 6f02c4be
......@@ -547,8 +547,8 @@ function player_format_with_db_structure($data){
$db_player_structure = update_db_player_structure();
foreach ($db_player_structure as $key)
{
if(is_array($data[$key])) $data[$key]=json_encode($data[$key]);
$ndata[$key]=$data[$key];
if(isset($data[$key]) && is_array($data[$key])) $data[$key]=json_encode($data[$key]);
$ndata[$key]=isset($data[$key]) ? $data[$key] : '';
}
return $ndata;
}
......
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