## Bug report ### Summary Quick summary what's this issue about. Calling $user->joinGroup() with no $_SESSION set crashes. Here's the offending code (line 716 of core/model/modx/moduser.class.php): ``` unset($_SESSION["modx.user.{$this->get('id')}.userGroupNames"], $_SESSION["modx.user.{$this->get('id')}.userGroups"]); ``` This breaks acceptance tests that run in the MODX Manager. ### Environment MODX version, MODX 2.8.1