]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
only call Bugzilla::Bug->CLEANUP if Bugzilla::Bug is loaded.
authorDylan William Hardison <dylan@hardison.net>
Sun, 26 Feb 2017 02:20:14 +0000 (02:20 +0000)
committerDylan William Hardison <dylan@hardison.net>
Sun, 26 Feb 2017 02:20:14 +0000 (02:20 +0000)
Bugzilla.pm

index 6ad1294121ef9ee5c7b73d5e598d2d6dd6f1a81b..5a57dbab2a035f3734fb94b27d0f8147d247dfde 100644 (file)
@@ -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.