[BUGFIX] Adapt Argument php 8
This commit is contained in:
parent
c191e6e635
commit
dede4d0efa
@ -585,7 +585,7 @@ class ActionController extends BaseController
|
|||||||
if (in_array($argument->getName(), ['step', 'submit', $object])) {
|
if (in_array($argument->getName(), ['step', 'submit', $object])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (method_exists($argument->getValue(), 'getUid')) {
|
if (is_string($argument->getValue()) && method_exists($argument->getValue(), 'getUid')) {
|
||||||
$pluginArguments[$argument->getName()]
|
$pluginArguments[$argument->getName()]
|
||||||
= $argument->getValue()->getUid();
|
= $argument->getValue()->getUid();
|
||||||
} else {
|
} else {
|
||||||
@ -840,7 +840,7 @@ class ActionController extends BaseController
|
|||||||
protected function valideCaptcha($captchaId, $value
|
protected function valideCaptcha($captchaId, $value
|
||||||
) {
|
) {
|
||||||
$cacheIdentifier = $GLOBALS['TSFE']->fe_user->getKey('ses', $captchaId);
|
$cacheIdentifier = $GLOBALS['TSFE']->fe_user->getKey('ses', $captchaId);
|
||||||
|
|
||||||
if (!$cacheIdentifier) {
|
if (!$cacheIdentifier) {
|
||||||
$this->addValidationError(
|
$this->addValidationError(
|
||||||
'captcha',
|
'captcha',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user