From e3f2aa8da34ae0094c0257b770c4089da7d2ca6f Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 15 Aug 2011 00:49:52 +1000 Subject: ... --- inc/database.php | 8 +------- inc/display.php | 3 --- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'inc') 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', -- cgit v1.3