[ticket/11942] Remove useless IF in templates

PHPBB3-11942