cal export - little fix for json

This commit is contained in:
rabuzarus 2016-06-20 23:38:34 +02:00
parent 71c9f562ae
commit d076f61a4a

View File

@ -15,7 +15,7 @@ function events_init(&$a) {
if($a->argc == 1) {
// if it's a json request abort here becaus we don't
// need the widget data
if($a->argv[1] !== 'json')
if($a->argv[1] === 'json')
return;
$cal_widget = widget_events();