[ticket/12755] Apply de morgan to conditional

PHPBB3-12755