diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
index 388300642c4273b48c90b42351cccb2d4233c5d9..407d2af48357f040f7dd6e97419d16a839ffb9df 100644
--- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
+++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
@@ -1381,7 +1381,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
             }
         }
         // Spacer and sysfolders is not accessible in frontend
-        if ($this->page['doktype'] == PageRepository::DOKTYPE_SPACER || $this->page['dokype'] == PageRepository::DOKTYPE_SYSFOLDER) {
+        if ($this->page['doktype'] == PageRepository::DOKTYPE_SPACER || $this->page['doktype'] == PageRepository::DOKTYPE_SYSFOLDER) {
             $message = 'The requested page does not exist!';
             $this->logger->error($message);
             try {