replaced ? true : false and removed intermediate $_cookie_var in the

handling of the SMARTY_DEBUG-cookie
This commit is contained in:
messju
2005-01-23 22:19:15 +00:00
parent a3c94c0c71
commit 5234d7bf5a

View File

@@ -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']);
}
}