Index: trunk/core/units/users/users_event_handler.php =================================================================== diff -u -r1977 -r2000 --- trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 1977) +++ trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 2000) @@ -37,7 +37,10 @@ if( $object->GetDBField('Status') == STATUS_ACTIVE ) { $sql = 'SELECT DISTINCT GroupId FROM '.TABLE_PREFIX.'UserGroup WHERE PortalUserId = '.$user_id; - if( $groups = $this->Conn->GetCol($sql) ) $this->Application->StoreVar( 'UserGroups', implode(',', $groups) ); + $groups = $this->Conn->GetCol($sql); + if(!$groups) $groups = Array(); + array_push($groups, $this->Application->ConfigValue('User_LoggedInGroup') ); + $this->Application->StoreVar( 'UserGroups', implode(',', $groups) ); if( $this->Application->CheckPermission('LOGIN',0) ) {