summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-30 23:15:05 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-30 23:15:05 +1100
commit210563045dabebec3ef8a4f1c3823293659fdc8d (patch)
treeeab1c0a6d93ddf114eff3e606cf20d3d62fc4422 /inc/display.php
parentb41a4a6ac7392175064c56dcc4d16cab66f541ab (diff)
Close SQL connection on error.
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php2
1 files changed, 2 insertions, 0 deletions
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',