summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-06-05 15:16:13 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-06-05 15:16:34 +0200
commit5463bdeff65681f58605e982f9da9cf9be362929 (patch)
tree2e5cb46d43298f126db0342537559f4ae5c327bf /web/lib/acctfuncs.inc.php
parent1aec9f712462f89d5676de57327761941f6d0163 (diff)
downloadaur-5463bdeff65681f58605e982f9da9cf9be362929.tar.gz
aur-5463bdeff65681f58605e982f9da9cf9be362929.tar.xz
acctfuncs.inc.php: Fix indentation
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r--web/lib/acctfuncs.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index f1776c04..06d43117 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -119,14 +119,15 @@ function process_account_form($UTYPE,$TYPE,$A,$U="",$T="",$S="",$E="",
$error = __("Missing User ID");
}
- if (!$error && !valid_username($U) && !user_is_privileged($editor_user))
- $error = __("The username is invalid.") . "<ul>\n"
+ if (!$error && !valid_username($U) && !user_is_privileged($editor_user)) {
+ $error = __("The username is invalid.") . "<ul>\n"
."<li>" . __("It must be between %s and %s characters long",
USERNAME_MIN_LEN, USERNAME_MAX_LEN )
. "</li>"
. "<li>" . __("Start and end with a letter or number") . "</li>"
. "<li>" . __("Can contain only one period, underscore or hyphen.")
. "</li>\n</ul>";
+ }
if (!$error && $P && $C && ($P != $C)) {
$error = __("Password fields do not match.");