From c25322c282cbdd58a4cc6bbd318e99efd862a64a Mon Sep 17 00:00:00 2001 From: Tobias <tobias.gaarenstroom@gmail.com> Date: Thu, 7 Apr 2022 16:52:49 +0200 Subject: [PATCH] Fixed the user id thing else it wont load --- public/templates/manage_users.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/templates/manage_users.php b/public/templates/manage_users.php index 93c28fc..226abcf 100644 --- a/public/templates/manage_users.php +++ b/public/templates/manage_users.php @@ -54,7 +54,9 @@ if ($i > 0) print end_table(); // on whether or not a username was submitted to the script. $mode = empty($user->id) ? "Create" : "Edit"; print subtitle(sprintf(T_('%s a User'), T_($mode))); -print start_form("{$app->issuer}manage_users/$mode?id={$user->id}"); +$extra = ""; +if (isset($_GET['user_id'])) $extra = "?id={$user->id}"; +print start_form("{$app->issuer}manage_users/$mode$extra"); print start_table(); print table_row(T_("Firstname"), text_field("wfirstname", $user->firstname, 20, 20)); -- GitLab