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

PHPBB3-12232