1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

fix parse error on front-end logout (when main admin in 'login as' state)

This commit is contained in:
secretr
2012-06-15 11:30:37 +00:00
parent c898921631
commit 8da6fd2ed2
2 changed files with 7 additions and 4 deletions

View File

@@ -1105,7 +1105,8 @@ class e_user extends e_user_model
$this->_extended_model = $this->_parent_extmodel;
$this->_extended_structure = $this->_parent_extstruct;
$this->_user_config = $this->_parent_config;
$this->setData($this->_parent_model->getData());
if($this->_parent_model)
$this->setData($this->_parent_model->getData());
// cleanup
$this->_parent_id = false;