X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=ajax.php;h=be378a274a910ab1e3d56eb1fd28ac011927a62e;hb=c25f923b9006723f30055e6bd7145d6aaa8cee42;hp=3dcd835c8d29104fceba3bcbe86d38de80dba4da;hpb=8fad776382e63b3f73f8dbe289f229d79cfc2c22;p=mailer.git diff --git a/ajax.php b/ajax.php index 3dcd835c8d..be378a274a 100644 --- a/ajax.php +++ b/ajax.php @@ -42,7 +42,7 @@ require('inc/libs/security_functions.php'); // Init start time -$GLOBALS['__start_time'] = microtime(true); +$GLOBALS['__start_time'] = microtime(TRUE); /* * Set output to "AJAX mode", proper module and prevent HTML headers/footers @@ -72,8 +72,8 @@ 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.'); } // END - if