diff options
author | Byron Jones <bjones@mozilla.com> | 2012-04-11 12:23:56 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-04-11 12:23:56 +0200 |
commit | c53605cca7a655e0206955a192ac9530fb270271 (patch) | |
tree | 85839e779c50b879774eeff57b0faf805a820c69 /extensions | |
parent | 24f741df2f56c77a603f9e4c6bcb2bbcd7871dff (diff) | |
download | bugzilla-c53605cca7a655e0206955a192ac9530fb270271.tar.gz bugzilla-c53605cca7a655e0206955a192ac9530fb270271.tar.xz |
Bug 744305: fix "uninitialized value" warning in user activity report
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BMO/lib/Reports.pm | 3 |
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) { |