summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 17:47:58 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 17:55:53 +0200
commit07d3649c2d68bd67ebbcbe10ee9535364903a0f8 (patch)
tree5dff5b79278e0bcbba068f871a22a918e574b83a
parent7c1c36ebc8ea7cd68ff3eee71f1bede36b5a45f2 (diff)
downloadaur-07d3649c2d68bd67ebbcbe10ee9535364903a0f8.tar.gz
aur-07d3649c2d68bd67ebbcbe10ee9535364903a0f8.tar.xz
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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index b4b52d52..6e19b3b0 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();