diff options
Diffstat (limited to 'web/html/logout.php')
-rw-r--r-- | web/html/logout.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web/html/logout.php b/web/html/logout.php index 6c982904..3958c251 100644 --- a/web/html/logout.php +++ b/web/html/logout.php @@ -10,9 +10,7 @@ include_once("acctfuncs.inc.php"); # access AUR common functions # sending any HTML output. # if (isset($_COOKIE["AURSID"])) { - if (!isset($dbh)) { - $dbh = DB::connect(); - } + $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); |