Skip to content

Commit c9a901f

Browse files
authored
Fix Possible Array Access warnings in Captcha Observer (OpenMage#4424)
1 parent 360dcd5 commit c9a901f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Captcha/Model/Observer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ protected function _resetAttempt($login)
274274
protected function _getCaptchaString($request, $formId)
275275
{
276276
$captchaParams = $request->getPost(Mage_Captcha_Helper_Data::INPUT_NAME_FIELD_VALUE);
277-
return $captchaParams[$formId];
277+
return $captchaParams[$formId] ?? '';
278278
}
279279

280280
/**

0 commit comments

Comments
 (0)