Index: branches/5.2.x/core/units/user_groups/user_groups_config.php =================================================================== diff -u -N -r15012 -r15563 --- branches/5.2.x/core/units/user_groups/user_groups_config.php (.../user_groups_config.php) (revision 15012) +++ branches/5.2.x/core/units/user_groups/user_groups_config.php (.../user_groups_config.php) (revision 15563) @@ -1,6 +1,6 @@ Array ( '' => Array( 'UserName' => 'CONCAT(u.LastName, \' \', u.FirstName)', - 'UserLogin' => 'u.Username', + 'UserLogin' => 'IF(u.Username = "", u.Email, u.Username)', 'PrimaryGroup' => 'IF(u.PrimaryGroupId = %1$s.GroupId, 1, 0)', ), ),