summaryrefslogtreecommitdiffstats
path: root/web/html/logout.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2013-02-03 17:26:29 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2013-02-10 12:10:38 +0100
commit8d6c872297459ceb463ed496968cc7cea32274a8 (patch)
tree2e1e5e07459f7ce62be0dccf26609bef4b2ad873 /web/html/logout.php
parent8e03e68d687015b5cd8c9d3857e1a1d007252afa (diff)
downloadaur-8d6c872297459ceb463ed496968cc7cea32274a8.tar.gz
aur-8d6c872297459ceb463ed496968cc7cea32274a8.tar.xz
Remove unnecessary database connection parameter from all functions
All functions now have a database connection method that will use the same database connection. This imitates the functionality of passing a database connection as an argument and makes it redundant. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/logout.php')
-rw-r--r--web/html/logout.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/logout.php b/web/html/logout.php
index 2d8bebc6..6c982904 100644
--- a/web/html/logout.php
+++ b/web/html/logout.php
@@ -13,11 +13,11 @@ if (isset($_COOKIE["AURSID"])) {
if (!isset($dbh)) {
$dbh = DB::connect();
}
- delete_session_id($_COOKIE["AURSID"], $dbh);
+ 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);
unset($_COOKIE['AURSID']);
- clear_expired_sessions($dbh);
+ clear_expired_sessions();
}
header('Location: /');