[BUGFIX] "else if" in GeneralUtility breaks the build 21/27521/3
authorOliver Klee <typo3-coding@oliverklee.de>
Sun, 9 Feb 2014 20:59:44 +0000 (21:59 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 9 Feb 2014 21:01:00 +0000 (22:01 +0100)
Resolves: #55822
Releases: 6.2
Change-Id: I32dd5119a3580df3990997d1c812f33c062c39ba
Reviewed-on: https://review.typo3.org/27521
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index a25882f..174272a 100644 (file)
@@ -1485,7 +1485,7 @@ class GeneralUtility {
                if ($count === 2) {
                        $position = strrpos($string, $delimiter);
                        return array(substr($string, 0, $position), substr($string, $position + 1));
-               } else if ($count <= 1) {
+               } elseif ($count <= 1) {
                        return array($string);
                } else {
                        $explodedValues = explode($delimiter, strrev($string), $count);