diff options
author | David Lawrence <dkl@mozilla.com> | 2016-03-07 06:21:49 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-03-07 06:21:49 +0100 |
commit | 1bb2d450243500cd237bd9d64df38df64df06dcd (patch) | |
tree | a147e5fb2330f8076543d7e0267465ca5db1d1c8 | |
parent | f559a15d0537821bc507277b2ef4ef097872f154 (diff) | |
download | bugzilla-1bb2d450243500cd237bd9d64df38df64df06dcd.tar.gz bugzilla-1bb2d450243500cd237bd9d64df38df64df06dcd.tar.xz |
Bug 1252084 - Warning when entering row into user_request_log when running commandline script
-rw-r--r-- | Bugzilla.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 0ce152e48..021783a75 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -615,7 +615,8 @@ sub switch_to_main_db { sub log_user_request { my ($class, $bug_id, $attach_id, $action) = @_; - return unless Bugzilla->params->{log_user_requests}; + return unless (i_am_cgi() || i_am_webservice()) + && Bugzilla->params->{log_user_requests}; my $cgi = $class->cgi; my $user_id = $class->user->id; |