[BUGFIX] Remove PHP notice in getModuleData() 83/41583/3
authorBenjamin Mack <benni@typo3.org>
Fri, 17 Jul 2015 16:25:56 +0000 (18:25 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 17 Jul 2015 17:41:58 +0000 (19:41 +0200)
Resolves: #60979
Releases: master, 6.2
Change-Id: Idb45d769ece09d8bfeae1f1ba74ced85a5fa9768
Reviewed-on: http://review.typo3.org/41583
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php

index 8ff334d..b13877c 100644 (file)
@@ -1221,7 +1221,7 @@ abstract class AbstractUserAuthentication {
         * @return mixed The module data if available: $this->uc['moduleData'][$module];
         */
        public function getModuleData($module, $type = '') {
-               if ($type != 'ses' || $this->uc['moduleSessionID'][$module] == $this->id) {
+               if ($type != 'ses' || (isset($this->uc['moduleSessionID'][$module]) && $this->uc['moduleSessionID'][$module] == $this->id)) {
                        return $this->uc['moduleData'][$module];
                }
                return NULL;