From 1dcba30b6f51ff7812af428203e9e7ec8519544e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Apr 2007 00:18:25 +0000 Subject: [PATCH] Remove a potential warning in BSRegister::_errorHandler() due to an array index --- Register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Register.php b/Register.php index 965126a..9ce3aea 100644 --- a/Register.php +++ b/Register.php @@ -510,7 +510,7 @@ class BSRegister // change the file and line of the error so we aren't looking at the location of the trigger_error() $backtrace = debug_backtrace(); - if ($backtrace[1]['function'] == 'trigger_error' AND isset($backtrace[2]['file'])) + if (isset($backtrace[1]) AND $backtrace[1]['function'] == 'trigger_error' AND isset($backtrace[2]['file'])) { $errfile = $backtrace[2]['file']; $errline = $backtrace[2]['line']; -- 2.43.5