summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/lib
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-04-11 12:23:56 +0200
committerByron Jones <bjones@mozilla.com>2012-04-11 12:23:56 +0200
commitc53605cca7a655e0206955a192ac9530fb270271 (patch)
tree85839e779c50b879774eeff57b0faf805a820c69 /extensions/BMO/lib
parent24f741df2f56c77a603f9e4c6bcb2bbcd7871dff (diff)
downloadbugzilla-c53605cca7a655e0206955a192ac9530fb270271.tar.gz
bugzilla-c53605cca7a655e0206955a192ac9530fb270271.tar.xz
Bug 744305: fix "uninitialized value" warning in user activity report
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) {