Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

I think I fixed a couple of bugs which caused us to see "0" for

"submissions" and "sub/comments" in daily email.  We'll see.
  • Loading branch information...
commit aca41c5803567a8b13da54e50299f378e1a7b765 1 parent 1d6a9ea
@jamiemccarthy jamiemccarthy authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 plugins/Stats/Stats.pm
View
5 plugins/Stats/Stats.pm
@@ -93,7 +93,7 @@ sub countSubmissionsByDay {
my $used = $self->sqlCount(
'submissions',
- "date BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'"
+ "time BETWEEN '$yesterday 00:00' AND '$yesterday 23:59:59'"
);
}
@@ -101,7 +101,8 @@ sub countSubmissionsByDay {
sub countSubmissionsByCommentIPID {
my($self, $yesterday, $ipids) = @_;
return unless @$ipids;
- my $in_list = join(",", @$ipids);
+ my $slashdb = getCurrentDB();
+ my $in_list = join(",", map { $slashdb->sqlQuote($_) } @$ipids);
my $used = $self->sqlCount(
'comments',
Please sign in to comment.
Something went wrong with that request. Please try again.