From 9e6b34f61e72f0fb2fd8c9b06fd555a7801af458 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 21 May 2005 06:13:54 +0000 Subject: [PATCH] r171: Instead of triggering errors in Error::construct() merely return it. --- includes/class_error.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/includes/class_error.php b/includes/class_error.php index 92bed9c..703fb20 100755 --- a/includes/class_error.php +++ b/includes/class_error.php @@ -39,14 +39,9 @@ class Error function construct() { - if (!is_array($this->phrase)) + if (!is_array($this->phrase) OR count($this->phrase) < 1) { - trigger_error('Error::construct() requires Error::phrase to be an array', E_USER_ERROR); - } - - if (count($this->phrase) < 1) - { - trigger_error('Error::phrase needs to have one or more elements to be an array', E_USER_ERROR); + return; } $this->process = "\n\n
    "; -- 2.22.5