Installation NG continued (still not fully working)
[mailer.git] / ajax.php
index f6c06483392262583de762d78b0bae666892a39d..be378a274a910ab1e3d56eb1fd28ac011927a62e 100644 (file)
--- a/ajax.php
+++ b/ajax.php
@@ -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