mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
5dfbb783f1
commit
c133826a7c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue