fix maybe

This commit is contained in:
Andreas 2019-09-19 14:09:51 +02:00
parent ab57907fb2
commit 9259a4c7d1

View File

@ -1,8 +1,7 @@
<?php <?php
register_shutdown_function(function() { register_shutdown_function(function() {
$error = error_get_last(); $error = error_get_last();
if ($error['type'] == E_ERROR) { if ($error['type'] == E_ERROR || $error['type'] == E_PARSE || $error['type'] == E_CORE_ERROR || $error['type'] == E_COMPILE_ERROR || $error['type'] == E_RECOVERABLE_ERROR) {
header('HTTP/1.1 500 Internal Server Error'); header('HTTP/1.1 500 Internal Server Error');
http_response_code(500); http_response_code(500);
} }
@ -17,6 +16,5 @@ $mvcController->executeModel();
if(!isset($_POST['testaction'])){ if(!isset($_POST['testaction'])){
include_once("./view/content_pagetemplate.php"); include_once("./view/content_pagetemplate.php");
} }
a
http_response_code(200); http_response_code(200);
?> ?>