From: Dylan William Hardison Date: Sun, 26 Feb 2017 02:20:14 +0000 (+0000) Subject: only call Bugzilla::Bug->CLEANUP if Bugzilla::Bug is loaded. X-Git-Tag: release-5.1.2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4480c8ca91365aa60c60f371a6cc2fd3f22a1ff1;p=thirdparty%2Fbugzilla.git only call Bugzilla::Bug->CLEANUP if Bugzilla::Bug is loaded. --- diff --git a/Bugzilla.pm b/Bugzilla.pm index 6ad1294121..5a57dbab2a 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.