Permalink
Browse files

Remove unecessary stop_trquest call

  • Loading branch information...
flack committed Feb 2, 2019
1 parent 00bde9e commit adcca9734bbdd653ad8e3949ae5f2785f641301c
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/errors.php
@@ -89,8 +89,6 @@ public function handle_error($errno, $errstr, $errfile, $errline, $errcontext)
*
* For a list of the allowed HTTP codes see the MIDCOM_ERR... constants
*
* <b>Note:</b> This function will call _midcom_stop_request() after it is finished.
*
* @param int $httpcode The error code to send.
* @param string $message The message to print.
*/
@@ -104,7 +102,8 @@ public function show($httpcode, $message)
if (_midcom_headers_sent()) {
debug_add("Generate-Error was called after sending the HTTP Headers!", MIDCOM_LOG_ERROR);
debug_add("Unexpected Error: {$httpcode} - {$message}", MIDCOM_LOG_ERROR);
_midcom_stop_request("Unexpected Error, this should display an HTTP {$httpcode} - " . htmlentities($message));
echo "Unexpected Error, this should display an HTTP {$httpcode} - " . htmlentities($message);
return;
}
switch ($httpcode) {

0 comments on commit adcca97

Please sign in to comment.