summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla.pm2
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.