[ticket/12232] Fix a similar excessive pattern in the method.

PHPBB3-12232