Permalink
Browse files

Fix submittable saving, accept either no or boolean false

  • Loading branch information...
1 parent 3225903 commit 626ab3298b435b47074fe750072b3a6aaf31fdcf @pudge pudge committed Sep 28, 2004
Showing with 2 additions and 1 deletion.
  1. +2 −1 Slash/DB/MySQL/MySQL.pm
View
3 Slash/DB/MySQL/MySQL.pm
@@ -3234,6 +3234,7 @@ sub saveTopic {
my $rows = $self->sqlCount('topics', "tid=$tid");
my $image = $topic->{image2} || $topic->{image};
+ my $submittable = $topic->{submittable} || 'no';
my $data = {
keyword => $topic->{keyword},
@@ -3242,7 +3243,7 @@ sub saveTopic {
image => $image,
width => $topic->{width} || '',
height => $topic->{height} || '',
- submittable => $topic->{submittable} eq 'no' ? 'no' : 'yes',
+ submittable => $submittable eq 'no' ? 'no' : 'yes',
};
if ($rows == 0) {

0 comments on commit 626ab32

Please sign in to comment.