From 0749b1a593a7ef279e46d32f1c8e0705e893ba29 Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:37:31 +0400 Subject: [PATCH] initialize $form_submitted in displayProfileDetails to fix issue #230 --- src/controllers/Profile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/Profile.php b/src/controllers/Profile.php index 0d889ce..c3b7c08 100644 --- a/src/controllers/Profile.php +++ b/src/controllers/Profile.php @@ -95,6 +95,7 @@ private function displayProfileDetails(Client $client, string $password = "", st $this->view_data['districts'] = District::getAll(); $this->view_data['defaultPassword'] = $password; $this->view_data['defaultConfirmPassword'] = $password_confirm; + $this->view_data['form_submitted'] = false; $this->view( 'Register',