From c53605cca7a655e0206955a192ac9530fb270271 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 11 Apr 2012 18:23:56 +0800 Subject: Bug 744305: fix "uninitialized value" warning in user activity report --- extensions/BMO/lib/Reports.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extensions/BMO/lib/Reports.pm') 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) { -- cgit v1.2.3-24-g4f1b