From 3a9afec5ff316d39ab2c51eaa76b4f52e7d72c0c Mon Sep 17 00:00:00 2001 From: wuhao <15392746632@qq.com> Date: Fri, 4 Dec 2020 14:09:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E8=AE=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmcalendar.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pmcalendar.php b/pmcalendar.php index b9b34a1..f6ce7c4 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -203,12 +203,10 @@ if ($act == 'newevent') { if ($type == 'charts') // we(json_encode($eventCharts)); we(json_encode(array('charts' => $eventCharts, 'table' => $eventTable))); - elseif ($type == 'count') - { - we(json_encode($eventTypeCnt)); - } - else + else{ + $json['count'] = $eventTypeCnt; we(json_encode($json)); + } } ?>