[BUGFIX] Check if array key exists 03/41603/3
authorHarry Glatz <glatz@analog.de>
Fri, 17 Jul 2015 20:26:41 +0000 (22:26 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 17 Jul 2015 20:57:12 +0000 (22:57 +0200)
Resolves: #37609
Releases: master
Change-Id: I87fab3dd3dae0e266607a9f8837f43b1ccd34cb2
Reviewed-on: http://review.typo3.org/41603
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Jozef Spisiak <jozef@pixelant.se>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index 50df1d2..7b29fe4 100755 (executable)
@@ -4138,7 +4138,7 @@ Connection: close
                        return call_user_func_array($funcName, array(&$params, &$ref));
                }
                // Check persistent object and if found, call directly and exit.
-               if (is_array($GLOBALS['T3_VAR']['callUserFunction'][$funcName])) {
+               if (isset($GLOBALS['T3_VAR']['callUserFunction'][$funcName]) && is_array($GLOBALS['T3_VAR']['callUserFunction'][$funcName])) {
                        return call_user_func_array(array(
                                &$GLOBALS['T3_VAR']['callUserFunction'][$funcName]['obj'],
                                $GLOBALS['T3_VAR']['callUserFunction'][$funcName]['method']