[BUGFIX] Use string as constant name in FormProtectionFactory. 63/31263/3
authorJost Baron <jost@netzkoenig.de>
Tue, 1 Jul 2014 12:31:35 +0000 (14:31 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 5 Jul 2014 13:08:32 +0000 (15:08 +0200)
Currently the constant itself is used, which leads to PHP notices if it is
not defined yet.

Resolves: #60115
Releases 6.2,6.3
Change-Id: I6932f958a9cb0d01be5910860ebbd78f2c67c58a
Reviewed-on: https://review.typo3.org/31263
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Marcin SÄ…gol
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/FormProtection/FormProtectionFactory.php

index b9fe45e..d06d2f1 100644 (file)
@@ -101,7 +101,7 @@ class FormProtectionFactory {
         * @return boolean
         */
        static protected function isInstallToolSession() {
-               return defined(TYPO3_enterInstallScript) && TYPO3_enterInstallScript;
+               return defined('TYPO3_enterInstallScript') && TYPO3_enterInstallScript;
        }
 
        /**