summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/lib/aur.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index dbcc23a4..f4ad6b47 100644
--- a/web/lib/aur.inc.php
+++ b/web/lib/aur.inc.php
@@ -50,7 +50,7 @@ function check_sid() {
$result = $dbh->query($q);
$row = $result->fetch(PDO::FETCH_NUM);
- if (!$row[0]) {
+ if (!$row) {
# Invalid SessionID - hacker alert!
#
$failed = 1;