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:33:13 +0000 (23:33 +0000)
committerThorsten Kahler <thorsten.kahler@dkd.de>
Wed, 3 Jan 2007 23:33:13 +0000 (23:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@1895 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tstemplate.php

index cf028d8..52edf07 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-12-21  Dmitry Dulepov  <dmitry@typo3.org>
 
        * List module did not use BACK_PATH in many calls to TYPO3 functions, which made imposible to reuse List module classes in extensions
index 864460e..cfd342e 100755 (executable)
@@ -1362,7 +1362,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...