Skip to content

Commit

Permalink
missing BETWEEN
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAker committed Sep 20, 2002
1 parent 8bf8d20 commit 6acb490
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/Stats/Stats.pm
Expand Up @@ -72,7 +72,8 @@ sub countModeratorLog {
my($self) = @_;

my $used = $self->sqlCount(
'moderatorlog'
'moderatorlog',
"ts BETWEEN '$self->{_day} 00:00' AND '$self->{_day} 23:59:59'"
);
}

Expand Down Expand Up @@ -413,7 +414,7 @@ sub countModeratorLogHour {
"val",
"val, COUNT(*) AS count",
"moderatorlog",
"",
"ts BETWEEN '$self->{_day} 00:00' AND '$self->{_day} 23:59:59'",
"GROUP BY val"
);

Expand Down Expand Up @@ -447,7 +448,8 @@ sub countCommentsDaily {
my $comments = $self->sqlSelect(
"COUNT(*)",
"comments",
"$cid_limit_clause $section_where"
"$cid_limit_clause $section_where
date BETWEEN '$self->{_day} 00:00' AND '$self->{_day} 23:59:59'"
);

return $comments;
Expand Down

0 comments on commit 6acb490

Please sign in to comment.