summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-05-20 07:25:11 +0200
committerByron Jones <glob@mozilla.com>2015-05-20 07:25:22 +0200
commit0c0284e6f8f6930c957e569013bb5688bfc1ad01 (patch)
tree2ccaf5e839bacd22ae9777147a6dbbf4a37c6f54 /extensions
parenta02490cb1c021efa14daeed0c5f536a6c1a24624 (diff)
downloadbugzilla-0c0284e6f8f6930c957e569013bb5688bfc1ad01.tar.gz
bugzilla-0c0284e6f8f6930c957e569013bb5688bfc1ad01.tar.xz
Bug 1166616: disabling of reviewer last-seen doesn't work for users that don't have a last_seen_date
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Review/Extension.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm
index 4e5fd35a6..0fdd22e4e 100644
--- a/extensions/Review/Extension.pm
+++ b/extensions/Review/Extension.pm
@@ -94,8 +94,8 @@ sub _reviewers_objs {
sub _user_is_active {
my ($self) = @_;
- return 0 if !defined($self->last_seen_date);
return 1 if MAX_REVIEWER_LAST_SEEN_DAYS_AGO == 0; # feature disabled
+ return 0 if !defined($self->last_seen_date);
my $dt = datetime_from($self->last_seen_date);
my $days_ago = $dt->delta_days(DateTime->now())->in_units('days');