Verified Commit 37819211 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(public-forms) Fix missing global $config is submitForm()

issue #5879
Showing with 2 additions and 0 deletions
+2 -0
......@@ -217,6 +217,8 @@ class publicFormPage extends standAlonePage
protected function submitForm()
{
global $config;
/* Check TOS checkbox */
if (isset($this->form['fdPublicFormTosUrl']) && !isset($_POST['tosCheckBox'])) {
msg_dialog::display(_('Error'), _('You need to accept the terms of service to continue!'), ERROR_DIALOG);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment