[ticket/12993] Improve get_user_ranks

https://tracker.phpbb.com/browse/PHPBB3-12993

PHPBB3-12993
Is this still valid?