diff options
-rw-r--r-- | extensions/MyDashboard/Extension.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/MyDashboard/Extension.pm b/extensions/MyDashboard/Extension.pm index 51e774b5b..d79e3e2ec 100644 --- a/extensions/MyDashboard/Extension.pm +++ b/extensions/MyDashboard/Extension.pm @@ -177,7 +177,7 @@ sub bug_end_of_create { # Anyone added to the CC list of a bug is now interested in that bug. foreach my $cc_user (@{ $bug->cc_users }) { - next $user->id == $cc_user->id; + next if $user->id == $cc_user->id; Bugzilla::Extension::MyDashboard::BugInterest->mark($cc_user->id, $bug->id, $timestamp); } @@ -196,7 +196,7 @@ sub bug_end_of_update { my %old_cc = map { $_->id => $_ } grep { defined } @{ $old_bug->cc_users }; my @added = grep { not $old_cc{ $_->id } } grep { defined } @{ $bug->cc_users }; foreach my $cc_user (@added) { - next $user->id == $cc_user->id; + next if $user->id == $cc_user->id; Bugzilla::Extension::MyDashboard::BugInterest->mark($cc_user->id, $bug->id, $timestamp); } |