Skip to content

Commit

Permalink
fix(form_profile): php warning
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 31, 2022
1 parent 1b13ee8 commit 0feade4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front/form_profile.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
if (isset($_POST['access_rights'])) {
$form = PluginFormcreatorCommon::getForm();
$form->update([
'id' => (int) $_POST[$formFk],
'access_rights' => (int) $_POST['access_rights'],
'is_captcha_enabled' => $_POST['is_captcha_enabled'],
'id' => (int) $_POST[$formFk],
'access_rights' => (int) $_POST['access_rights'],
'is_captcha_enabled' => $_POST['is_captcha_enabled'] ?? false,
]);
}

Expand Down

0 comments on commit 0feade4

Please sign in to comment.