diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-02-26 03:20:14 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-02-26 03:20:14 +0100 |
commit | 4480c8ca91365aa60c60f371a6cc2fd3f22a1ff1 (patch) | |
tree | b263c50656ce425d34582d516e016d7a0a0db12c | |
parent | d3a58e043a804feacc1d401dd4e1be02c56fc93d (diff) | |
download | bugzilla-4480c8ca91365aa60c60f371a6cc2fd3f22a1ff1.tar.gz bugzilla-4480c8ca91365aa60c60f371a6cc2fd3f22a1ff1.tar.xz |
only call Bugzilla::Bug->CLEANUP if Bugzilla::Bug is loaded.
-rw-r--r-- | Bugzilla.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 6ad129412..5a57dbab2 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -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. |