mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
replaced ? true : false and removed intermediate $_cookie_var in the
handling of the SMARTY_DEBUG-cookie
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user