From dede4d0efa96966384d249f8b93a2f8dfe2092c3 Mon Sep 17 00:00:00 2001 From: wadichaabene Date: Fri, 31 Jan 2025 21:42:13 +0100 Subject: [PATCH] [BUGFIX] Adapt Argument php 8 --- Classes/Controller/ActionController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Controller/ActionController.php b/Classes/Controller/ActionController.php index 5aa04e7..726cb2a 100644 --- a/Classes/Controller/ActionController.php +++ b/Classes/Controller/ActionController.php @@ -585,7 +585,7 @@ class ActionController extends BaseController if (in_array($argument->getName(), ['step', 'submit', $object])) { continue; } - if (method_exists($argument->getValue(), 'getUid')) { + if (is_string($argument->getValue()) && method_exists($argument->getValue(), 'getUid')) { $pluginArguments[$argument->getName()] = $argument->getValue()->getUid(); } else { @@ -840,7 +840,7 @@ class ActionController extends BaseController protected function valideCaptcha($captchaId, $value ) { $cacheIdentifier = $GLOBALS['TSFE']->fe_user->getKey('ses', $captchaId); - + if (!$cacheIdentifier) { $this->addValidationError( 'captcha',