From b513edea2b75ba8abeef12347ff0a269d68fff2c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 10 Feb 2006 05:43:18 +0000 Subject: [PATCH] Remove some of the ini_get() calls --- kernel.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel.php b/kernel.php index c5c3d52..20a6f10 100644 --- a/kernel.php +++ b/kernel.php @@ -749,13 +749,15 @@ class ISSO */ function _error_handler($errno, $errstr, $errfile, $errline) { + $level = ini_get('error_reporting'); + switch ($errno) { // Fatal case E_USER_ERROR: $title = 'Fatal'; $level = 3; - if (!(ini_get('error_reporting') & E_USER_ERROR)) + if (!($level & E_USER_ERROR)) { return; } @@ -765,7 +767,7 @@ class ISSO case E_USER_WARNING: $title = 'Warning'; $level = 2; - if (! ((ini_get('error_reporting') & E_USER_WARNING) AND (ini_get('error_reporting') & E_WARNING)) ) + if (! (($level & E_USER_WARNING) AND ($level & E_WARNING)) ) { return; } @@ -776,7 +778,7 @@ class ISSO default: $title = 'Notice'; $level = 1; - if (! ((ini_get('error_reporting') & E_USER_NOTICE) AND (ini_get('error_reporting') & E_NOTICE)) ) + if (! (($level & E_USER_NOTICE) AND ($level & E_NOTICE)) ) { return; } -- 2.43.5