From a59b2f2e594e605cbaf04243661fddfa6b5b78e4 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Wed, 1 Sep 2021 15:29:23 +0200 Subject: [PATCH] Fix reverse logic logic --- wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1