Commit 3d4cb66a authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

index.php: Fix undefined variable notice



Spotted when browsing the package details page while being logged out.
Reported-by: default avatarcanyonknight <canyonknight@gmail.com>
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 0afe82f8
...@@ -42,7 +42,10 @@ if (isset($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) { ...@@ -42,7 +42,10 @@ if (isset($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
break; break;
} }
$_POST['token'] = $_COOKIE['AURSID']; if (isset($_COOKIE['AURSID'])) {
$_POST['token'] = $_COOKIE['AURSID'];
}
$_POST['IDs'] = array(pkgid_from_name($tokens[2]) => '1'); $_POST['IDs'] = array(pkgid_from_name($tokens[2]) => '1');
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment