summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/lib
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BMO/lib')
-rw-r--r--extensions/BMO/lib/Reports.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/BMO/lib/Reports.pm b/extensions/BMO/lib/Reports.pm
index 50b53cb69..1fc53827e 100644
--- a/extensions/BMO/lib/Reports.pm
+++ b/extensions/BMO/lib/Reports.pm
@@ -112,7 +112,8 @@ sub user_activity_report {
push @params, ($from_dt, $to_dt);
}
- my $order = $input->{'sort'} eq 'bug' ? 'bug_id, bug_when' : 'bug_when';
+ my $order = ($input->{'sort'} && $input->{'sort'} eq 'bug')
+ ? 'bug_id, bug_when' : 'bug_when';
my $comment_filter = '';
if (!Bugzilla->user->is_insider) {