[ticket/12035] Correcting the condition

PHPBB3-12035