summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-11-14 14:26:59 +0100
committerAndrey Andreev <narf@devilix.net>2013-11-14 14:26:59 +0100
commitafca352b30466ecff38dc3106321851a030af623 (patch)
tree153952dbe18b642d55be92e65c1f6359a79ddf72 /system
parentfb2ac41b6c914fd55b539337e381860bfcc2cf7b (diff)
Remove a function_exists() check for error_get_last()
It was only relevant until we dropped support for PHP < 5.2
Diffstat (limited to 'system')
-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)))
{