From: Marcel Werk Date: Mon, 3 Jun 2019 14:48:55 +0000 (+0200) Subject: unnecessary complicated code simplified X-Git-Tag: 5.2.0_Alpha_1~58 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9def4767f077de5465e1ec4908d226d1377df8c;p=GitHub%2FWoltLab%2FWCF.git unnecessary complicated code simplified --- diff --git a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php index 5d9c46a376..eedd62359d 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryNode.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryNode.class.php @@ -169,7 +169,7 @@ class CategoryNode extends DatabaseObjectDecorator implements \RecursiveIterator * @since 5.2 */ public function isVisibleInNestedList(AbstractDecoratedCategory $activeCategory = null) { - if (!$this->getParentCategory() || ($this->getParentCategory() && !$this->getParentCategory()->getParentCategory())) { + if (!$this->getParentCategory() || !$this->getParentCategory()->getParentCategory()) { // level 1 & 2 are always visible return true; }