[BUGFIX] MENU special = updated does not work anymore
authorXavier Perseguers <xavier@typo3.org>
Wed, 11 Jan 2012 14:31:26 +0000 (15:31 +0100)
committerXavier Perseguers <xavier@typo3.org>
Wed, 18 Jan 2012 11:17:43 +0000 (12:17 +0100)
Since stdWrap has been introduced on HMENU properties, a wrong
test removes the condition pidInList=0 which prevents the inclusion
of a pid IN (current page) clause in the query used to retrieved
recently modified pages.

Change-Id: Ibaea85d6162653b45260d687f682706d9f372b88
Fixes: #32374
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/7739
Reviewed-by: Philipp Gampe
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/cms/tslib/class.tslib_content.php

index 718f23d..0b4badf 100644 (file)
@@ -7445,7 +7445,7 @@ class tslib_cObj {
                        $conf[$property] = isset($conf[$property . '.'])
                                        ? trim($this->stdWrap($conf[$property], $conf[$property . '.']))
                                        : trim($conf[$property]);
-                       if (!$conf[$property]) {
+                       if ($conf[$property] === '') {
                                unset($conf[$property]);
                        }
                        if (isset($conf[$property . '.'])) {