From 5818051fbeb4aec81dd2b9ab861d149ee2f2e10f Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 20 Aug 2007 23:04:19 +0000 Subject: Bug 257351: collectstats.pl dies if an invalid series is defined - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index b43b237eb..7384e7b5f 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -324,7 +324,7 @@ sub sql_group_by { my ($self, $needed_columns, $optional_columns) = @_; my $expression = "GROUP BY $needed_columns"; - $expression .= ", " . $optional_columns if defined($optional_columns); + $expression .= ", " . $optional_columns if $optional_columns; return $expression; } -- cgit v1.2.3-24-g4f1b