Index: branches/5.2.x/core/units/helpers/user_helper.php =================================================================== diff -u -N -r15410 -r15519 --- branches/5.2.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 15410) +++ branches/5.2.x/core/units/helpers/user_helper.php (.../user_helper.php) (revision 15519) @@ -1,6 +1,6 @@ Application->RecallVar('UserGroups'); - $this->Application->Session->SetField('GroupId', reset( explode(',', $groups) )); + list ($first_group, ) = explode(',', $groups); + + $this->Application->Session->SetField('GroupId', $first_group); $this->Application->Session->SetField('GroupList', $groups); $this->Application->Session->SetField('TimeZone', $object->GetDBField('TimeZone')); }