Commit 84011bd4 authored by luluxia's avatar luluxia

fix: 修复is_new未定义

parent 1f2831de
...@@ -30,7 +30,7 @@ function gameerrorhandler($code, $msg, $file, $line){ ...@@ -30,7 +30,7 @@ function gameerrorhandler($code, $msg, $file, $line){
function gexit($message = '',$file = '', $line = 0) { function gexit($message = '',$file = '', $line = 0) {
global $charset,$title,$extrahead,$allowcsscache,$errorinfo; global $charset,$title,$extrahead,$allowcsscache,$errorinfo;
global $gameversion,$cuser,$cpass; global $gameversion,$cuser,$cpass;
if ($_GET['is_new']) { if (isset($_GET['is_new'])) {
echo json_encode(array( echo json_encode(array(
"error" => $message, "error" => $message,
)); ));
......
...@@ -57,7 +57,7 @@ if(!empty($roomact)) ...@@ -57,7 +57,7 @@ if(!empty($roomact))
} }
else else
{ {
if ($_GET['is_new']) { if (isset($_GET['is_new'])) {
echo json_encode(array( echo json_encode(array(
// 当前回合数 // 当前回合数
"num" => $gamenum, "num" => $gamenum,
......
...@@ -284,7 +284,7 @@ if($mode == 'enter') { ...@@ -284,7 +284,7 @@ if($mode == 'enter') {
save_gameinfo(); save_gameinfo();
if ($_GET['is_new']) { if (isset($_GET['is_new'])) {
echo json_encode(array( echo json_encode(array(
"page" => "validOver", "page" => "validOver",
"nick" => $nickinfo, "nick" => $nickinfo,
...@@ -325,7 +325,7 @@ if($mode == 'enter') { ...@@ -325,7 +325,7 @@ if($mode == 'enter') {
$iconarray = get_iconlist($icon); $iconarray = get_iconlist($icon);
$utlist = get_utitlelist(); $utlist = get_utitlelist();
$select_icon = $icon; $select_icon = $icon;
if ($_GET['is_new']) { if (isset($_GET['is_new'])) {
// 获取可选称号 // 获取可选称号
$nickList = array_map(function($val) use ($titles_list) { $nickList = array_map(function($val) use ($titles_list) {
return array( return array(
......
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