[livejournal] r19340: LJSUP-9111: When entering an empty field...
Committer: gariev
LJSUP-9111: When entering an empty field or non-existent user is given us the entire list of postsU trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl 2011-06-22 03:23:34 UTC (rev 19339)
+++ trunk/cgi-bin/ljlib.pl 2011-06-22 04:04:35 UTC (rev 19340)
@@ -1224,8 +1224,8 @@
} elsif ($opts->{'poster'}) {
my $posteru = LJ::load_user($opts->{'poster'});
unless ($posteru) {
- $$err = "No such user: " . LJ::ehtml($opts->{'poster'})
- if ref $err eq "SCALAR";
+ ## silently drop the error, since S2 can't handle it nicely (it dies)
+ ## $$err = "No such user: " . LJ::ehtml($opts->{'poster'}) if ref $err eq "SCALAR";
return;
}
$posterwhere = " AND posterid=$posteru->{userid}";
