[ticket/12556] Changing inline condition to proper if/else

Changing inline condition block to proper if/else

PHPBB3-12556