Fixed bug 931: Typolink to a page with certain type doesn't work if type is zero
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tstemplate.php
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...