X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fajax-functions.php;h=43a6244afae1dbdce4c4944f18a469a71769d467;hb=c3db0c416433a946c25ea1ce8d9329c0912a1616;hp=1b46e221bb35960c19dc067811c00cbd545ac01e;hpb=df4166450ac4788f58931bd5d30c617432a63f9d;p=mailer.git diff --git a/inc/ajax-functions.php b/inc/ajax-functions.php index 1b46e221bb..43a6244afa 100644 --- a/inc/ajax-functions.php +++ b/inc/ajax-functions.php @@ -48,6 +48,9 @@ function initAjax () { 'reply_content' => NULL, ); + // Init call-back debug information + $GLOBALS['ajax_callback_function'] = NULL; + // Set content type (mostly JSON) setContentType('application/json'); @@ -132,7 +135,7 @@ function sendAjaxContent () { // Is the status fine or template not found (404)? if (isAjaxHttpStatusAccepted()) { // Then output the JSON - outputHtml(json_encode($GLOBALS['ajax_reply'], JSON_FORCE_OBJECT)); + outputHtml(encodeJson($GLOBALS['ajax_reply'])); } // END - if }