diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-17 17:47:58 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-17 17:55:53 +0200 |
commit | 07d3649c2d68bd67ebbcbe10ee9535364903a0f8 (patch) | |
tree | 5dff5b79278e0bcbba068f871a22a918e574b83a | |
parent | 7c1c36ebc8ea7cd68ff3eee71f1bede36b5a45f2 (diff) |
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>
-rw-r--r-- | web/template/pkg_details.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |