Index: branches/5.1.x/core/units/helpers/user_helper.php =================================================================== diff -u -N -r13471 -r13581 --- branches/5.1.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 13471) +++ branches/5.1.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 13581) @@ -1,6 +1,6 @@ Load($user_id); $object->SetDBField('Login', 'root'); $this->Application->StoreVar('user_id', $user_id); @@ -178,7 +178,7 @@ $this->Application->HandleEvent($dummy, 'session-log:OnEndSession'); - $user_id = -2; + $user_id = USER_GUEST; $this->Application->SetVar('u.current_id', $user_id); $object =& $this->Application->recallObject('u.current', null, Array('skip_autoload' => true)); $object->Load($user_id); @@ -263,7 +263,7 @@ return ; } - $is_root = $this->Application->RecallVar('user_id') == -1; + $is_root = $this->Application->RecallVar('user_id') == USER_ROOT; $object =& $this->getUserObject();