--- a/punbb/footer.php Sun Apr 06 00:35:38 2008 -0400
+++ b/punbb/footer.php Sun Jun 15 01:42:31 2008 -0400
@@ -215,7 +215,11 @@
$pun_db->close();
// Spit out the page
-global $template;
+global $template, $db;
$template->header();
echo($tpl_main);
$template->footer();
+
+$db->close();
+exit();
+