Explorar o código

various fixes

Olivier Massot hai 1 ano
pai
achega
a37b6d70a0

+ 1 - 1
ot_connect/Classes/Service/OtAuthenticationService.php

@@ -271,7 +271,7 @@ class OtAuthenticationService extends AbstractAuthenticationService
 
             $name = $cookie->getName();
             $value = $cookie->getValue();
-            $expires = $cookie->getExpires();
+            $expires = $cookie->getExpires() ?? 0;
             $path = $cookie->getPath();
             $secure = $cookie->getSecure();
             $httpOnly = $cookie->getHttpOnly();

+ 1 - 1
ot_connect/ext_localconf.php

@@ -28,4 +28,4 @@ $GLOBALS['TYPO3_CONF_VARS']['SVCONF']['auth']['setup']['FE_alwaysAuthUser'] = tr
 $GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] = 1;
 
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postLoginFailureProcessing'][] =
-    Opentalent\OtConnect\Hooks\PostLoginFailureProcessingHook::class;
+    \Opentalent\OtConnect\Hooks\PostLoginFailureProcessingHook::class;

+ 1 - 1
ot_optimizer/Classes/Middleware/Frontend/OtPageResolver.php

@@ -57,7 +57,7 @@ class OtPageResolver extends \TYPO3\CMS\Frontend\Middleware\PageResolver
         $website = $GLOBALS['TYPO3_REQUEST']->getAttribute('ot_website');
         $params = $request->getQueryParams();
 
-        if (!$website['uid'] > 0) {
+        if (!($website['uid'] ?? 0) > 0) {
             return GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction(
                 $request,
                 'The requested website does not exist',