From ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Sun, 3 Feb 2013 16:26:32 +0000 Subject: Remove unneeded database connection calls Since all database related functions will establish a connection when needed, there is no need to pre-emptively try and establish a database connection. Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/html/logout.php | 1 - 1 file changed, 1 deletion(-) (limited to 'web/html/logout.php') diff --git a/web/html/logout.php b/web/html/logout.php index 3958c25..5e8e8f4 100644 --- a/web/html/logout.php +++ b/web/html/logout.php @@ -10,7 +10,6 @@ include_once("acctfuncs.inc.php"); # access AUR common functions # sending any HTML output. # if (isset($_COOKIE["AURSID"])) { - $dbh = DB::connect(); delete_session_id($_COOKIE["AURSID"]); # setting expiration to 1 means '1 second after midnight January 1, 1970' setcookie("AURSID", "", 1, "/", null, !empty($_SERVER['HTTPS']), true); -- cgit v1.2.3-70-g09d2