diff options
author | Byron Jones <glob@mozilla.com> | 2015-09-23 07:18:55 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-23 07:18:55 +0200 |
commit | 4b5da7dfdf6fe1abe40934804a07c7ff4f113316 (patch) | |
tree | e870c689088af69c330d5a0428ef4163b5068f98 /extensions | |
parent | 043c7523acd6af5288191b15f746fc360b73ab40 (diff) | |
download | bugzilla-4b5da7dfdf6fe1abe40934804a07c7ff4f113316.tar.gz bugzilla-4b5da7dfdf6fe1abe40934804a07c7ff4f113316.tar.xz |
Bug 1204645 - fix 'use of uninited' warnings
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BMO/lib/Reports/Groups.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/BMO/lib/Reports/Groups.pm b/extensions/BMO/lib/Reports/Groups.pm index 240feb5cc..dfe90b78f 100644 --- a/extensions/BMO/lib/Reports/Groups.pm +++ b/extensions/BMO/lib/Reports/Groups.pm @@ -266,7 +266,7 @@ sub _filter_userlist { my $now = DateTime->now(); my $never = DateTime->from_epoch( epoch => 0 ); foreach my $user (@$list) { - my $last_seen = datetime_from($user->last_seen_date) // $never; + my $last_seen = $user->last_seen_date ? datetime_from($user->last_seen_date) : $never; $user->{last_seen_days} = sprintf( '%.0f', $now->subtract_datetime_absolute($last_seen)->delta_seconds / (28 * 60 * 60)); |