[ticket/13022] Remove ternary condition

PHPBB3-13022