summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/commission/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/commission/index.php b/www/commission/index.php
index fda4e97..ae5e2ee 100644
--- a/www/commission/index.php
+++ b/www/commission/index.php
@@ -220,7 +220,11 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
$finished = "Errors: " . $result;
$save_password = "";
$password = "";
- $password_err = $result2;
+ if (strlen($result2) === 0) {
+ $password_err = $result3;
+ } else {
+ $password_err = $result2;
+ }
$username_err = $result;
}
} // Create user, set password