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;