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)); + } } ?>