Skip to content

Commit

Permalink
Fix PHP 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski committed May 20, 2022
1 parent 9baf774 commit 4c5b198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MPForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function compileFormFields($formFields, $formId, Form $form)
// but still save data already added to the input fields so it is
// there when they come back to the current step
if ('back' === ($_POST['mp_form_pageswitch'] ?? null)) {
$manager->storeData($_POST, [], (array) $_SESSION['FILES']);
$manager->storeData($_POST, [], (array) ($_SESSION['FILES'] ?? []));
$this->redirectToStep($manager, $manager->getPreviousStep());
}

Expand Down

0 comments on commit 4c5b198

Please sign in to comment.