diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 23:15:05 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 23:15:05 +1100 |
| commit | 210563045dabebec3ef8a4f1c3823293659fdc8d (patch) | |
| tree | eab1c0a6d93ddf114eff3e606cf20d3d62fc4422 /inc | |
| parent | b41a4a6ac7392175064c56dcc4d16cab66f541ab (diff) | |
Close SQL connection on error.
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/display.php | 2 |
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', |
