summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc.php3
-rw-r--r--web/template/pkg_details.php2
2 files changed, 2 insertions, 3 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 7dc0ae64..3e89fa35 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -301,9 +301,6 @@ function pkgname_is_blacklisted($name, $dbh=NULL) {
# display package details
#
function package_details($id=0, $SID="", $dbh=NULL) {
- $atype = account_from_sid($SID);
- $uid = uid_from_sid($SID);
-
if(!$dbh) {
$dbh = db_connect();
}
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 52391232..c03493d8 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -1,4 +1,6 @@
<?php
+$atype = account_from_sid($SID);
+$uid = uid_from_sid($SID);
$pkgid = intval($_REQUEST['ID']);
if ($uid == $row["MaintainerUID"] or