summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_details.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r--web/template/pkg_details.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 046f836..230cc2c 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -2,7 +2,13 @@
$atype = account_from_sid($SID);
$uid = uid_from_sid($SID);
-$pkgid = intval($_REQUEST['ID']);
+if (isset($_REQUEST['ID'])) {
+ $pkgid = intval($_REQUEST['ID']);
+}
+else {
+ $pkgid = pkgid_from_name($_REQUEST['N']);
+}
+
if ($uid == $row["MaintainerUID"] or
($atype == "Developer" or $atype == "Trusted User")) {