Fixing undefined index notice when missing * errors are thrown

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5983 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-11-12 02:04:54 +00:00
parent 11d295eb0c
commit e584f7bd0c

View file

@ -77,7 +77,9 @@ class SessionComponent extends CakeSession {
* @access public
*/
function initialize(&$controller) {
$this->__bare = $controller->params['bare'];
if (isset($controller->params['bare'])) {
$this->__bare = $controller->params['bare'];
}
}
/**
* Startup method.