[ticket/12759] Little code cleanup

PHPBB3-12759