[ticket/12025] Fixing the condition....

PHPBB3-12025