Close SQL connection on error.

This commit is contained in:
Savetheinternet 2010-11-30 23:15:05 +11:00 committed by Paul Merrill
parent a3b604243b
commit 5e5a988ead

View File

@ -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',