|
楼主 |
发表于 2009-5-21 11:25:58
|
显示全部楼层
http://www.phpinsider.com/smarty ... 561cc0d58a31a406877
在上面这个论坛里找到了解决办法,如下:
Had the same problem, but the SVN Code works here too. To fix until the next stable release change line 585 [/libs/Smarty.class.php] from this:
Code:
$this->_supers['session'] = $this->request_use_auto_globals ? $_SESSION : $GLOBALS['HTTP_SESSION_VARS'];
To this:
Code:
if (isset($_SESSION))
{
$this->_supers['session'] = $this->request_use_auto_globals ? $_SESSION : $GLOBALS['HTTP_SESSION_VARS'];
}
else
{
$this->_supers['session'] = array();
} |
|