From 07d3649c2d68bd67ebbcbe10ee9535364903a0f8 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 17 Jul 2012 17:47:58 +0200 Subject: 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 --- web/template/pkg_details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/template') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index b4b52d5..6e19b3b 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -2,7 +2,7 @@ $atype = account_from_sid($SID); $uid = uid_from_sid($SID); -$pkgid = intval($_REQUEST['ID']); +$pkgid = intval($row['ID']); $catarr = pkgCategories(); -- cgit v1.2.3-70-g09d2