diff --git a/NEWS b/NEWS index 2baa8b83..b22820a1 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,11 @@ +Version 2.6.25 (May 19th, 2009) +------------------------------- +- fix E_NOTICE when sessions are disabled (mohrt) + +Version 2.6.24 (May 16th, 2009) +------------------------------- +- fix problem introduced with super global changes (mohrt) + Version 2.6.23 (May 13th, 2009) ------------------------------- - strip backticks from {math} equations (mohrt) diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index a4812eac..af4bc08b 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -22,7 +22,7 @@ * smarty-discussion-subscribe@googlegroups.com * * @link http://www.smarty.net/ - * @version 2.6.24-dev + * @version 2.6.25-dev * @copyright Copyright: 2001-2005 New Digital Group, Inc. * @author Andrei Zmievski * @access public diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 1b35d90b..a1aefb75 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -27,7 +27,7 @@ * @author Monte Ohrt * @author Andrei Zmievski * @package Smarty - * @version 2.6.24-dev + * @version 2.6.25-dev */ /* $Id$ */ @@ -107,7 +107,7 @@ class Smarty /** * When set, smarty does uses this value as error_reporting-level. * - * @var boolean + * @var integer */ var $error_reporting = null; @@ -465,7 +465,7 @@ class Smarty * * @var string */ - var $_version = '2.6.24-dev'; + var $_version = '2.6.25-dev'; /** * current template inclusion depth @@ -582,7 +582,10 @@ class Smarty $this->_supers['get'] = $this->request_use_auto_globals ? $_GET : $GLOBALS['HTTP_GET_VARS']; $this->_supers['post'] = $this->request_use_auto_globals ? $_POST : $GLOBALS['HTTP_POST_VARS']; $this->_supers['server'] = $this->request_use_auto_globals ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS']; - $this->_supers['session'] = $this->request_use_auto_globals ? $_SESSION : $GLOBALS['HTTP_SESSION_VARS']; + if(isset($_SESSION)) + $this->_supers['session'] = $this->request_use_auto_globals ? $_SESSION : $GLOBALS['HTTP_SESSION_VARS']; + else + $this->_supers['session'] = array(); $this->_supers['request'] = $this->request_use_auto_globals ? $_REQUEST : $GLOBALS['HTTP_REQUEST_VARS']; $this->_supers['cookies'] = $this->request_use_auto_globals ? $_COOKIE : $GLOBALS['HTTP_COOKIE_VARS']; $this->_supers['env'] = $this->request_use_auto_globals ? $_ENV : $GLOBALS['HTTP_ENV_VARS']; diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 8b4cea73..4216a113 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -21,7 +21,7 @@ * @link http://smarty.php.net/ * @author Monte Ohrt * @author Andrei Zmievski - * @version 2.6.24-dev + * @version 2.6.25-dev * @copyright 2001-2005 New Digital Group, Inc. * @package Smarty */