pkg_details.php: Fix link to voters if ID is unset

When a package is requested by name, the "ID" request parameter might be
unset. Use the "ID" field of the query result instead.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-07-17 17:47:58 +02:00
parent 7c1c36ebc8
commit 07d3649c2d

View file

@ -2,7 +2,7 @@
$atype = account_from_sid($SID);
$uid = uid_from_sid($SID);
$pkgid = intval($_REQUEST['ID']);
$pkgid = intval($row['ID']);
$catarr = pkgCategories();