Signed-off-by: Lukas Fleischer <lfleisc...@archlinux.org>
---
 web/lib/aur.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php
index dbcc23a..f4ad6b4 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;
-- 
2.26.0

Reply via email to