Bugfix: do not override _default404Page/_default404Template with the 403 equivalents...
authorchristian.futterlieb <christian.futterlieb@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 16 Feb 2011 17:02:20 +0000 (17:02 +0000)
committerchristian.futterlieb <christian.futterlieb@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 16 Feb 2011 17:02:20 +0000 (17:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/pagenotfoundehandling/trunk@43712 735d13b6-9817-0410-8766-e36946ffe9aa

class.tx_pagenotfoundhandling.php

index 64627b8..c60c7b5 100644 (file)
@@ -344,13 +344,13 @@ class tx_pagenotfoundhandling
         if($this->_isForbiddenError) {
             $this->_setForbiddenHeader($conf['default403Header']);
 
-            if(isset($conf['default403TemplateFile'])) {
+            if(isset($conf['default403TemplateFile']) && !empty($conf['default403TemplateFile'])) {
                 // reset the 404Page, because the page could come from default404Page and override this templateFile setting
                 $this->_default404Page = 0;
                 $this->_defaultTemplateFile = (string) $conf['default403TemplateFile'];
             }
 
-            if(isset($conf['default403Page'])) {
+            if(isset($conf['default403Page']) && !empty($conf['default403Page'])) {
                 $this->_default404Page = (int) $conf['default403Page'];
             }
         }