[BUGFIX] Environment check does not detect Windows OS 55/19555/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 4 Apr 2013 11:26:29 +0000 (13:26 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 4 Apr 2013 12:48:26 +0000 (14:48 +0200)
Obvious error. This code is now identical to ext:core
SystemEnvironmentBuilder.

Change-Id: Ic09c04bb8761ae6cb678d70118e4bcb94d2f7df9
Resolves: #46911
Releases: 6.1
Reviewed-on: https://review.typo3.org/19555
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/install/Classes/SystemEnvironment/Check.php

index c87d255..41463ad 100644 (file)
@@ -1069,7 +1069,7 @@ class Check {
         */
        protected function isWindowsOs() {
                $windowsOs = FALSE;
-               if (stristr(PHP_OS, 'darwin') && stristr(PHP_OS, 'win')) {
+               if (!stristr(PHP_OS, 'darwin') && stristr(PHP_OS, 'win')) {
                        $windowsOs = TRUE;
                }
                return $windowsOs;