[aur-dev] [PATCH 3/3] acctfuncs.inc.php: Fix indentation

Lukas Fleischer archlinux at cryptocrack.de
Thu Jun 5 09:16:56 EDT 2014


Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/lib/acctfuncs.inc.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index f1776c0..06d4311 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.");
-- 
2.0.0



More information about the aur-dev mailing list