[ticket/12993] Improve get_user_ranks

https://tracker.phpbb.com/browse/PHPBB3-12993

PHPBB3-12993
I think yes (https://github.com/Nicofuma/phpbb/commit/e02c3e3b4aeb0a0588cacb4d96ef3d8c4ba0ef8a)