summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB.pm2
1 files changed, 1 insertions, 1 deletions
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;
}