From aa622da28144f6dc0fc237ae1ce91a64d6aa6990 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20B=C3=BCrk?= Date: Thu, 28 Jul 2016 12:21:27 +0200 Subject: [PATCH 1/1] [BUGFIX] Fix condition for USERDEF2 in procesItemState Fix a wrong condition in the procesItemState method for MENU handling for the USERDEF2 itemstate, so it would not be ignored anymore. Initializing the USERDEF2conf was never done, even if one or more USERDEF2 item states was found, because the condition was checking for NULL === TRUE, which will never be TRUE. Resolves: #77284 Releases: master, 7.6 Change-Id: I16c1d21f03c9aa3565744cae90b7f0cb487ec009 Reviewed-on: https://review.typo3.org/49257 Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters --- .../Classes/ContentObject/Menu/AbstractMenuContentObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php index a269c43817c3..76299686fded 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php @@ -1497,7 +1497,7 @@ abstract class AbstractMenuContentObject foreach ($NOconf as $key => $val) { if ($this->isItemState('USERDEF2', $key)) { // If this is the first active, we must generate USERDEF2. - if ($USERDEF2conf) { + if ($USERDEF2conf === null) { $USERDEF2conf = $this->tmpl->splitConfArray($this->mconf['USERDEF2.'], $splitCount); // Prepare active rollOver settings, overriding normal active settings if (!empty($this->mconf['USERDEF2RO'])) { -- 2.20.1