From: joshuaruesweg Date: Wed, 1 Sep 2021 13:29:23 +0000 (+0200) Subject: Fix reverse logic logic X-Git-Tag: 5.5.0_Alpha_1~456^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a59b2f2e594e605cbaf04243661fddfa6b5b78e4;p=GitHub%2FWoltLab%2FWCF.git Fix reverse logic logic --- diff --git a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php index 7d6112dd80..466199712c 100644 --- a/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php @@ -416,7 +416,7 @@ class BoxAddForm extends AbstractForm $data = $objectType->getProcessor()->getData(); if ($data !== null) { $this->pageIDs = $data['pageIDs']; - $this->visibleEverywhere = !$data['pageIDs_reverseLogic'] ? 1 : 0; + $this->visibleEverywhere = $data['pageIDs_reverseLogic'] ? 1 : 0; } else { $this->pageIDs = []; $this->visibleEverywhere = 1; @@ -431,7 +431,7 @@ class BoxAddForm extends AbstractForm $data = $objectTypes->getProcessor()->getData(); if ($data !== null) { $this->pageIDs = $data['pageIDs']; - $this->visibleEverywhere = !$data['pageIDs_reverseLogic'] ? 1 : 0; + $this->visibleEverywhere = $data['pageIDs_reverseLogic'] ? 1 : 0; } else { $this->pageIDs = []; $this->visibleEverywhere = 1;