Skip to content

Commit

Permalink
fixed 41886: Fehler in Matrixfrage neutrale Antwort
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Aug 9, 2024
1 parent 16a0fc9 commit ad56160
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function checkInput(): bool

if (count($foundvalues) > 0) {
// check answers
if (is_array($foundvalues['answer'])) {
if (is_array($foundvalues['answer'] ?? false)) {
foreach ($foundvalues['answer'] as $idx => $answervalue) {
if (((strlen($answervalue ?? "")) == 0) && ($this->getRequired() && (!isset($foundvalues['other'][$idx])))) {
$this->setAlert($lng->txt("msg_input_is_required"));
Expand Down

0 comments on commit ad56160

Please sign in to comment.