Only echo JSONResponse if it's non-empty

This commit is contained in:
Nathan Gray 2013-06-12 21:06:16 +00:00
parent 933be21758
commit 22f2b5599b

View File

@ -256,7 +256,11 @@ class egw_json_response
}
}
echo $inst->getJSON();
if($inst->haveJSONResponse())
{
echo $inst->getJSON();
$inst->initResponseArray();
}
}
/**