From 210563045dabebec3ef8a4f1c3823293659fdc8d Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 30 Nov 2010 23:15:05 +1100 Subject: [PATCH] Close SQL connection on error. --- inc/display.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/display.php b/inc/display.php index 1ce1e609..c910e26c 100644 --- a/inc/display.php +++ b/inc/display.php @@ -21,6 +21,8 @@ function error($message) { global $board; + + if(function_exists('sql_close')) sql_close(); die(Element('page.html', Array( 'index'=>ROOT, 'title'=>'Error',