summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-10-21 15:30:31 +0200
committerAndrey Andreev <narf@devilix.net>2016-10-21 15:30:31 +0200
commit4ffe6345690f81872d0937e562faaf75f3185b6a (patch)
tree8695ad99bef9308d5d4dab16692ef2f7f5207928 /system/core/Common.php
parent6513701f21e72fadbbadc4bfea501dd871fa5149 (diff)
Fix #4865
Diffstat (limited to 'system/core/Common.php')
-rw-r--r--system/core/Common.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 257763dd3..91c585f7d 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -661,6 +661,7 @@ if ( ! function_exists('_exception_handler'))
$_error =& load_class('Exceptions', 'core');
$_error->log_exception('error', 'Exception: '.$exception->getMessage(), $exception->getFile(), $exception->getLine());
+ is_cli() OR set_status_header(500);
// Should we display the error?
if (str_ireplace(array('off', 'none', 'no', 'false', 'null'), '', ini_get('display_errors')))
{