From 96f203ef1e5b8c83dd98d1f151f7ea7086f6aea1 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 9 Jun 2002 16:47:15 +0000 Subject: [PATCH] restore old error_reporting value --- config.inc.php3 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/config.inc.php3 b/config.inc.php3 index 6182ce73d..64dd01f2a 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -8,8 +8,10 @@ * All directives are explained in Documentation.html */ -// Sets the php error reporting - Please do not change this line! -error_reporting(E_ALL); +/** + * Sets the php error reporting - Please do not change this line! + */ +$old_error_rep = error_reporting(E_ALL); /** @@ -301,4 +303,10 @@ if ($cfg['ShowFunctionFields']) { * Unset magic_quotes_runtime - do not change! */ set_magic_quotes_runtime(0); + +/** + * Restore old error_reporting mode - do not change either! + */ +error_reporting($old_error_rep); +unset($old_error_rep); ?>