Skip to content

Commit

Permalink
fix wrong view_data array key in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed May 24, 2024
1 parent 74a0af5 commit 02b685c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controllers/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct()
$this->view_data['errors'] = [];
$this->view_data['editMode'] = false;
$this->view_data['form_submitted'] = false;
$this->view_data['$registration_is_successful'] = false;
$this->view_data['registration_is_successful'] = false;

// get list of districts to be displayed on form
$this->view_data['districts'] = District::getAll();
Expand Down Expand Up @@ -120,7 +120,6 @@ private function handleFormSubmission(): void
(new Error())->handleUnknownError();
die();
}

} else {
$this->loadDataToForm($form_data);
}
Expand Down

0 comments on commit 02b685c

Please sign in to comment.