From 4480c8ca91365aa60c60f371a6cc2fd3f22a1ff1 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sun, 26 Feb 2017 02:20:14 +0000 Subject: only call Bugzilla::Bug->CLEANUP if Bugzilla::Bug is loaded. --- Bugzilla.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3-24-g4f1b