Skip to content

Commit

Permalink
only call Bugzilla::Bug->CLEANUP if Bugzilla::Bug is loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwh committed Feb 26, 2017
1 parent d3a58e0 commit 4480c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bugzilla.pm
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ sub _cleanup {
my $smtp = $cache->{smtp};
$smtp->disconnect if $smtp;
clear_request_cache();
Bugzilla::Bug->CLEANUP();
Bugzilla::Bug->CLEANUP() if $INC{"Bugzilla/Bug.pm"};

# These are both set by CGI.pm but need to be undone so that
# Apache can actually shut down its children if it needs to.
Expand Down

0 comments on commit 4480c8c

Please sign in to comment.