Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[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 posts

U   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}";

Tags: gariev, livejournal, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments