[aur-dev] [PATCH 03/13] logout.php: Fix PHP undefined variable notice
canyonknight
canyonknight at gmail.com
Sat Sep 15 12:38:08 EDT 2012
Signed-off-by: canyonknight <canyonknight at gmail.com>
---
web/html/logout.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/html/logout.php b/web/html/logout.php
index 835f1c9..3d059e7 100644
--- a/web/html/logout.php
+++ b/web/html/logout.php
@@ -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);
--
1.7.12
More information about the aur-dev
mailing list