[ticket/12025] Apply DeMorgan

PHPBB3-12025