From 9c055aa5d2adf344537b927a41e3262d5550e5ae Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 6 Aug 2002 09:36:42 +0000 Subject: [PATCH] Can now edit own firstname and lastname, and some tidying --- user/edit.html | 14 +++++++++++++- user/edit.php | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/user/edit.html b/user/edit.html index 0f6b139582..f5b3cf3847 100644 --- a/user/edit.html +++ b/user/edit.html @@ -8,6 +8,18 @@ + +

: + + + + + +

: + + + +

: @@ -104,7 +116,7 @@ - "> + "> diff --git a/user/edit.php b/user/edit.php index 0d36c886b7..ad93d579f8 100644 --- a/user/edit.php +++ b/user/edit.php @@ -160,6 +160,12 @@ function find_form_errors(&$user, &$usernew, &$err) { if (empty($usernew->city)) $err["city"] = get_string("missingcity"); + if (empty($usernew->firstname)) + $err["firstname"] = get_string("missingfirstname"); + + if (empty($usernew->lastname)) + $err["lastname"] = get_string("missinglastname"); + if (empty($usernew->country)) $err["country"] = get_string("missingcountry"); -- 2.39.5