Fixed bug 931: Typolink to a page with certain type doesn't work if type is zero
authorThorsten Kahler <thorsten.kahler@dkd.de>
Wed, 3 Jan 2007 23:35:27 +0000 (23:35 +0000)
committerThorsten Kahler <thorsten.kahler@dkd.de>
Wed, 3 Jan 2007 23:35:27 +0000 (23:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1896 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tstemplate.php

index e63010d..66b2d86 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2006-01-03  Thorsten Kahler  <thorsten.kahler@dkd.de>
+       * Fixed bug 931: Typolink to a page with certain type doesn't work if type is zero
+
 2006-01-03  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bugs 3254, 3872, 4345: hide workspace selector if (1) no access to workspace module, or (2) only one workspace is available to user
index 42345f6..a230217 100755 (executable)
@@ -1364,7 +1364,7 @@ class t3lib_TStemplate    {
 
                        // typeNum
                $typeNum = $this->setup[$LD['target'].'.']['typeNum'];
-               if (!$typeOverride && intval($GLOBALS['TSFE']->config['config']['forceTypeValue']))     {
+               if ( !t3lib_div::testInt($typeOverride) && intval($GLOBALS['TSFE']->config['config']['forceTypeValue']))        {
                        $typeOverride = intval($GLOBALS['TSFE']->config['config']['forceTypeValue']);
                }
                if (strcmp($typeOverride,''))   { $typeNum = $typeOverride; }   // Override...