mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
Close SQL connection on error.
This commit is contained in:
parent
b41a4a6ac7
commit
210563045d
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
function error($message) {
|
function error($message) {
|
||||||
global $board;
|
global $board;
|
||||||
|
|
||||||
|
if(function_exists('sql_close')) sql_close();
|
||||||
die(Element('page.html', Array(
|
die(Element('page.html', Array(
|
||||||
'index'=>ROOT,
|
'index'=>ROOT,
|
||||||
'title'=>'Error',
|
'title'=>'Error',
|
||||||
|
Loading…
Reference in New Issue
Block a user