summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/display.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php
index d16b12aa..2c7153bb 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -86,7 +86,7 @@ function error($message, $priority = true, $debug_stuff = false) {
}
// Return the bad request header, necessary for AJAX posts
- http_response_code(400);
+ header($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
die(Element('page.html', array(
'config' => $config,