logout.php: Fix PHP undefined variable notice

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2012-09-09 14:53:04 -04:00 committed by Lukas Fleischer
parent 5dfbb783f1
commit c133826a7c

View file

@ -10,7 +10,7 @@ include_once("acctfuncs.inc.php"); # access AUR common functions
# sending any HTML output.
#
if (isset($_COOKIE["AURSID"])) {
if (!$dbh) {
if (!isset($dbh)) {
$dbh = db_connect();
}
delete_session_id($_COOKIE["AURSID"], $dbh);