From 723ace3e267cfbcd7b08a8a7812e6c1e98ffb23a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 25 Nov 2006 21:47:08 +0000 Subject: [PATCH] Sort out the warnings with the error handler setting --- Register.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Register.php b/Register.php index 5801b1d..72048df 100644 --- a/Register.php +++ b/Register.php @@ -119,12 +119,9 @@ class BSRegister // ################################################################### /** - * Constructor: set the error handler + * Constructor */ - private function __construct() - { - set_error_handler(array(self::$instance, '_errorHandler')); - } + private function __construct() {} // ################################################################### /** @@ -139,6 +136,7 @@ class BSRegister if (self::$instance == null) { self::$instance = new BSRegister(); + set_error_handler(array(self::$instance, '_errorHandler')); } return self::$instance; } -- 2.43.5