Skip to content

Commit

Permalink
Fixes for polls
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAker committed Mar 6, 2002
1 parent 8547454 commit f58c7b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Slash/DB/MySQL/MySQL.pm
Expand Up @@ -23,7 +23,7 @@ use base 'Slash::DB::Utility';
# For the getDecriptions() method
my %descriptions = (
'sortcodes'
=> sub { $_[0]->sqlSelectMany('code,name', 'code_param', "type='$_[1]'") },
=> sub { $_[0]->sqlSelectMany('code,name', 'code_param', "type='sortcodes'") },

'generic'
=> sub { $_[0]->sqlSelectMany('code,name', 'code_param', "type='$_[2]'") },
Expand Down Expand Up @@ -1739,6 +1739,7 @@ sub getPollVoter {
# Yes, I hate the name of this. -Brian
sub savePollQuestion {
my($self, $poll) = @_;
$poll->{section} ||= getCurrentStatic('defaultsection');
$poll->{voters} ||= "0";
my $qid_quoted = "";
$qid_quoted = $self->sqlQuote($poll->{qid}) if $poll->{qid};
Expand Down

0 comments on commit f58c7b1

Please sign in to comment.