summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/database.php8
-rw-r--r--inc/display.php3
2 files changed, 1 insertions, 10 deletions
diff --git a/inc/database.php b/inc/database.php
index 792eae58..014c2e1e 100644
--- a/inc/database.php
+++ b/inc/database.php
@@ -29,12 +29,6 @@
}
}
- function sql_close() {
- global $pdo, $config;
- if(!$config['db']['persistent'])
- $pdo = NULL;
- }
-
function prepare($query) {
global $pdo, $debug, $config;
if($config['debug']) {
@@ -65,4 +59,4 @@
return $err[2];
}
}
-?> \ No newline at end of file
+?>
diff --git a/inc/display.php b/inc/display.php
index 43892686..b63fbbf1 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -65,8 +65,6 @@
function error($message) {
global $board, $mod, $config;
- if(function_exists('sql_close')) sql_close();
-
if(defined('STDIN')) {
// Running from CLI
die('Error: ' . $message);
@@ -89,7 +87,6 @@
function loginForm($error=false, $username=false, $redirect=false) {
global $config;
- if(function_exists('sql_close')) sql_close();
die(Element('page.html', Array(
'index'=>$config['root'],
'title'=>'Login',