diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 23:15:05 +1100 |
|---|---|---|
| committer | Paul Merrill <napalminc@gmail.com> | 2010-12-01 04:14:16 -0800 |
| commit | 5e5a988ead48fac19b194f79fb1441b48207aab1 (patch) | |
| tree | 8740ebd7b10b36a52c6349c6a1b1c8486db9a1a4 /inc/display.php | |
| parent | a3b604243b5347fab24e9d9d31380362d489dc6d (diff) | |
Close SQL connection on error.
Diffstat (limited to 'inc/display.php')
| -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', |
