X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=ajax.php;h=e267e9f9b92a8540625deae9b1a9aafee09fa8ab;hb=e70440e1164db8bbeeccd90df305bfa0efb641e1;hp=f6c06483392262583de762d78b0bae666892a39d;hpb=596c8ab32594401ca84abfbfe35513ddfff31bec;p=mailer.git diff --git a/ajax.php b/ajax.php index f6c0648339..e267e9f9b9 100644 --- a/ajax.php +++ b/ajax.php @@ -72,10 +72,10 @@ if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) { // Process the request processAjaxRequest(); - // Is there an error? ('200 OK' is fine) - if ((getHttpStatus() != '200 OK') && (getHttpStatus() != '404 NOT FOUND')) { + // Is there an error which is not fine? + if (!isAjaxHttpStatusAccepted()) { // The process was handled but didn't work - reportBug(__FUNCTION__, __LINE__, 'AJAX request is valid but does not do anything.'); + reportBug(__FUNCTION__, __LINE__, 'AJAX request level=' . isPostRequestElementSet('level') . ',status=' . getHttpStatus() . ',callback[' . gettype($GLOBALS['ajax_callback_function']) . ']=' . $GLOBALS['ajax_callback_function'] . ' is valid but does not do anything.'); } // END - if } else { // Not allowed