[BUGFIX] Correct check for install tool requests in bootstrap 39/55739/2
authorSusanne Moog <susanne.moog@typo3.org>
Thu, 15 Feb 2018 18:32:49 +0000 (19:32 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 15 Feb 2018 18:43:53 +0000 (19:43 +0100)
Resolves: #83924
Releases: master, 8.7
Change-Id: If9f435c64addea63793586e131da19768749857c
Reviewed-on: https://review.typo3.org/55739
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Core/Bootstrap.php

index f470a46..a270f3b 100644 (file)
@@ -606,7 +606,7 @@ class Bootstrap
                 $displayErrors = 1;
                 break;
             default:
-                if (!TYPO3_REQUESTTYPE_INSTALL) {
+                if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                     // Throw exception if an invalid option is set.
                     throw new \RuntimeException(
                         'The option $TYPO3_CONF_VARS[SYS][displayErrors] is not set to "-1", "0" or "1".',