- \r
- if(strlen($title) >= 50)\r
- {\r
- $localerrors[] = "Warning: User".$username." added but failed to set title: ".lang("ACCOUNT_TITLE_CHAR_LIMIT",array(1,50));\r
- }\r
- else if (count($localerrors) == 0 && strlen($title) > 0)\r
- {\r
- $user_id = fetchUserId($username); //So stupid, when you create a user, it doesn't return the user id\r
- if (!updateTitle($user_id, $title))\r
- {\r
- $localerrors[] = "Warning: User ".$username." added but failed to set title: ". lang("SQL_ERROR");\r
- }\r
+
+ if(strlen($title) >= 50)
+ {
+ $localerrors[] = "Warning: User".$username." added but failed to set title: ".lang("ACCOUNT_TITLE_CHAR_LIMIT",array(1,50));
+ }
+ else if (count($localerrors) == 0 && strlen($title) > 0)
+ {
+ $user_id = fetchUserId($username); //So stupid, when you create a user, it doesn't return the user id
+ if (!updateTitle($user_id, $title))
+ {
+ $localerrors[] = "Warning: User ".$username." added but failed to set title: ". lang("SQL_ERROR");
+ }