mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
Close SQL connection on error.
This commit is contained in:
parent
a3b604243b
commit
5e5a988ead
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user