diff -r effde559e0e9 -r 0c0aa144356a users.php --- a/users.php Mon Mar 03 20:32:33 2008 +0000 +++ b/users.php Mon Mar 10 19:15:59 2008 +0000 @@ -21,12 +21,12 @@ require_once("inc/toolkit.inc.php"); -if($_POST["submit"] -&& $_POST["username"] != "" -&& $_POST["password"] != "" -&& $_POST["fullname"] != "" -&& $_POST["email"] != "" -&& $_POST["level"] > 0) +if(isset($_POST["submit"]) +&& isset($_POST['username']) && $_POST["username"] != "" +&& isset($_POST['password']) && $_POST["password"] != "" +&& isset($_POST['fullname']) && $_POST["fullname"] != "" +&& isset($_POST['email']) && $_POST["email"] != "" +&& isset($_POST['level']) && $_POST["level"] > 0) { if(substr_count($_POST["username"], " ") == 0) { @@ -45,13 +45,13 @@ $error = _('Usernames can\'t contain spaces'); } } -elseif($_POST["submit"]) +elseif(isset($_POST["submit"])) { $error = _('Please fill in all fields'); } include_once("inc/header.inc.php"); -if ($error != "") +if (isset($error) && $error != "") { ?>
@@ -120,19 +120,19 @@ - + - + - + - + @@ -146,7 +146,7 @@ - +
:">">
:">">
:">">
:">">
:
:
: