diff --git a/pmcalendar.php b/pmcalendar.php index 7138e4c..507f540 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -337,7 +337,7 @@ if ($act == 'newevent') { $gameName = $rs['game']; $yanqi_history = json_decode($rs['yanqi_history'],true); - $isYanqi = $yanqi_history?end($yanqi_history)['isYanqi']:0; + $isYanqi = $yanqi_history?$yanqi_history[0]['isYanqi']:0; $row = array( 'id' => $rs['id'],