summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/BMO/Extension.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 87c49ef95..05a329989 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -556,8 +556,8 @@ sub object_end_of_create {
} elsif ($class eq 'Bugzilla::Bug') {
# Log real IP addresses for auditing
- my $user = $args->{object};
- _syslog(sprintf('[audit] %s <%s> created bug %s', $user->login, remote_ip(), $args->{object}->id));
+ _syslog(sprintf('[audit] %s <%s> created bug %s',
+ Bugzilla->user->login, remote_ip(), $args->{object}->id));
}
}