From 2be27448ade5e3a535b636f4fb69b1b06973551e Mon Sep 17 00:00:00 2001 From: Cristian Kocza Date: Wed, 19 Feb 2014 21:52:38 +0200 Subject: Moved $_error load statement lower. This prevents a possible recursion when an error is trigerred by one of the config file. Also since the variable is used only later in the code it makes sense to move it lower. --- system/core/Common.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/core/Common.php b/system/core/Common.php index 16a916a01..c83d80a3d 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -587,9 +587,7 @@ if ( ! function_exists('_exception_handler')) if ($is_error) { set_status_header(500); - } - - $_error =& load_class('Exceptions', 'core'); + } // Should we ignore the error? We'll get the current error_reporting // level and add its bits with the severity bits to find out. @@ -598,6 +596,7 @@ if ( ! function_exists('_exception_handler')) return; } + $_error =& load_class('Exceptions', 'core'); $_error->log_exception($severity, $message, $filepath, $line); // Should we display the error? -- cgit v1.2.3-24-g4f1b