[BUGFIX] Init variable in GeneralUtility::createVersionNumberedFilename 62/31262/3
authorJost Baron <jost@netzkoenig.de>
Tue, 1 Jul 2014 12:22:31 +0000 (14:22 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 5 Jul 2014 13:09:45 +0000 (15:09 +0200)
The variable '$doNothing' was not initialized, leading to PHP notices.

Resolves: #60116
Releases: 6.3, 6.2
Change-Id: I38473b73d4b1ebeb4b1dcbea5ba24d005c520487
Reviewed-on: https://review.typo3.org/31262
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/Utility/GeneralUtility.php

index 7f0567f..c43f673 100644 (file)
@@ -3149,6 +3149,8 @@ Connection: close
        static public function createVersionNumberedFilename($file, $forceQueryString = FALSE) {
                $lookupFile = explode('?', $file);
                $path = self::resolveBackPath(self::dirname(PATH_thisScript) . '/' . $lookupFile[0]);
+
+               $doNothing = FALSE;
                if (TYPO3_MODE == 'FE') {
                        $mode = strtolower($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['versionNumberInFilename']);
                        if ($mode === 'embed') {