[ticket/13234] Fix conditions and CS

PHPBB3-13234