diff --git a/phpgwapi/inc/class.egw_json.inc.php b/phpgwapi/inc/class.egw_json.inc.php index e4b21c245f..6ba714b483 100644 --- a/phpgwapi/inc/class.egw_json.inc.php +++ b/phpgwapi/inc/class.egw_json.inc.php @@ -256,7 +256,11 @@ class egw_json_response } } - echo $inst->getJSON(); + if($inst->haveJSONResponse()) + { + echo $inst->getJSON(); + $inst->initResponseArray(); + } } /**