Skip to content
Browse files

misc. bugs

  • Loading branch information...
1 parent 32a54b9 commit f6c409e362dd2f5304b6f7c602d199429ebefbb6 @pudge pudge committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 Slash/DB/MySQL/MySQL.pm
  2. +1 −1 themes/slashcode/htdocs/comments.pl
View
2 Slash/DB/MySQL/MySQL.pm
@@ -10101,7 +10101,7 @@ sub getTopiclistForStory {
# Grandfather in an old-style sid.
my $stoid = $self->getStoidFromSidOrStoid($id);
- return undef unless $stoid;
+ return [] unless $stoid;
my $chosen_hr = $options->{topics_chosen} || $self->getStoryTopicsChosen($stoid);
return $self->getTopiclistFromChosen($chosen_hr, $options);
View
2 themes/slashcode/htdocs/comments.pl
@@ -109,7 +109,7 @@ sub main {
$discussion = $slashdb->getDiscussionBySid($form->{sid});
$section = $discussion->{section};
if ($constants->{tids_in_urls}) {
- my $tids = $slashdb->getTopiclistForStory($form->{sid});
+ my $tids = $slashdb->getTopiclistForStory($form->{sid}) || [];
my $tid_string = join('&tid=', @$tids);
$user->{state}{tid} = $tid_string;
}

0 comments on commit f6c409e

Please sign in to comment.
Something went wrong with that request. Please try again.