diff --git a/typo3/sysext/core/Classes/Session/UserSessionManager.php b/typo3/sysext/core/Classes/Session/UserSessionManager.php index d670aa06d76b1eafb20c5c5ac4634268a03eaae3..32456a07ecb72ab260666754fe4d4c40ddbae3cb 100644 --- a/typo3/sysext/core/Classes/Session/UserSessionManager.php +++ b/typo3/sysext/core/Classes/Session/UserSessionManager.php @@ -360,8 +360,8 @@ class UserSessionManager implements LoggerAwareInterface $sessionManager = $sessionManager ?? GeneralUtility::makeInstance(SessionManager::class); $ipLocker = $ipLocker ?? GeneralUtility::makeInstance( IpLocker::class, - $GLOBALS['TYPO3_CONF_VARS'][$loginType]['lockIP'], - $GLOBALS['TYPO3_CONF_VARS'][$loginType]['lockIPv6'] + (int)($GLOBALS['TYPO3_CONF_VARS'][$loginType]['lockIP'] ?? 0), + (int)($GLOBALS['TYPO3_CONF_VARS'][$loginType]['lockIPv6'] ?? 0) ); $lifetime = (int)($GLOBALS['TYPO3_CONF_VARS'][$loginType]['lifetime'] ?? 0); $sessionLifetime = $sessionLifetime ?? (int)$GLOBALS['TYPO3_CONF_VARS'][$loginType]['sessionTimeout'];