summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 0927339a5..6d0922abf 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1459,7 +1459,7 @@ sub wants_mail {
AND relationship = ?
AND event IN (' . join(',', @$events) . ') ' .
$dbh->sql_limit(1),
- undef, ($self->{'id'}, $relationship));
+ undef, ($self->id, $relationship));
return defined($wants_mail) ? 1 : 0;
}