Error properly if the given username isn't valid or is missing.
Patch by denise.
diffs (21 lines):
diff -r 465a8be117e8 -r f735fba71775 htdocs/manage/circle/add.bml
--- a/htdocs/manage/circle/add.bml Thu Apr 30 19:52:36 2009 +0000
+++ b/htdocs/manage/circle/add.bml Thu Apr 30 21:05:20 2009 +0000
@@ -13,7 +13,7 @@
my $user = $POST{'user'} || $GET{'user'};
my $u = LJ::load_user($user);
my $userid = $u->{userid};
- my $username = $u->name_html;
+
$body = "";
LJ::need_res(qw(js/core.js js/dom.js js/colorpicker.js));
@@ -32,6 +32,8 @@
$body = BML::ml('.error2.text2', {'aopts' =>
"href='$LJ::SITEROOT/manage/circle/edit.bml'"});
return;
}
+
+ my $username = $u->name_html;
if ($POST{'mode'} eq "add")
{
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog