madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20611: LJSUP-10480: When user enters in the "se...

Committer: sbelyaev
LJSUP-10480: When user enters in the "search" invalid value it receives an error "[Error: assertion failed!"
U   trunk/cgi-bin/LJ/DelayedEntry.pm
Modified: trunk/cgi-bin/LJ/DelayedEntry.pm
===================================================================
--- trunk/cgi-bin/LJ/DelayedEntry.pm	2011-11-23 12:44:36 UTC (rev 20610)
+++ trunk/cgi-bin/LJ/DelayedEntry.pm	2011-11-23 13:16:36 UTC (rev 20611)
@@ -917,7 +917,7 @@
 
 sub get_entries_by_journal {
     my ( $class, $journal, $opts ) = @_;
-    __assert($journal, "no journal");
+    return [] unless $journal;
 
     my $skip   = $opts->{'skip'} || 0;
     my $show   = $opts->{'show'} || 0;

Tags: livejournal, madeon, pm, sbelyaev
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