From 5234d7bf5a55ae856f4b0d77603c7a9e30415a97 Mon Sep 17 00:00:00 2001 From: messju Date: Sun, 23 Jan 2005 22:19:15 +0000 Subject: [PATCH] replaced ? true : false and removed intermediate $_cookie_var in the handling of the SMARTY_DEBUG-cookie --- libs/Smarty.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index e830c346..47b89a8b 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1132,8 +1132,7 @@ class Smarty $this->debugging = true; } } else { - $_cookie_var = $this->request_use_auto_globals ? $_COOKIE['SMARTY_DEBUG'] : $GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG']; - $this->debugging = $_cookie_var ? true : false; + $this->debugging = (bool)($this->request_use_auto_globals ? @$_COOKIE['SMARTY_DEBUG'] : @$GLOBALS['HTTP_COOKIE_VARS']['SMARTY_DEBUG']); } }