summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index c008bd571..00e303098 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -634,7 +634,7 @@ if ( ! function_exists('_shutdown_handler'))
*/
function _shutdown_handler()
{
- $last_error = function_exists('error_get_last') ? error_get_last() : NULL;
+ $last_error = error_get_last();
if (isset($last_error) &&
($last_error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING)))
{