wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17623: LJSUP-7052. Minor fix

Committer: gprochaev
LJSUP-7052. Minor fix

U   trunk/cgi-bin/LJ/Vertical.pm
Modified: trunk/cgi-bin/LJ/Vertical.pm
===================================================================
--- trunk/cgi-bin/LJ/Vertical.pm	2010-11-01 06:13:08 UTC (rev 17622)
+++ trunk/cgi-bin/LJ/Vertical.pm	2010-11-01 06:56:18 UTC (rev 17623)
@@ -598,6 +598,7 @@
 
     my $dbh = LJ::get_db_writer();
     my $posts = $dbh->selectall_arrayref("SELECT * FROM vertical_posts WHERE vert_id = ?", { Slice => {} }, $self->vert_id);
+    return [] unless $posts;
     my $max_num = scalar @$posts;
     my $count   = $args{'count'};
     $count = $max_num if $count > $max_num;

Tags: livejournal, pm, wisest-owl
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