Remove unnecessary atype and uid lookup from package_details()

These were never used in the function. Where they are used is in the
pkg_details.php template, so move them closer to their actual usage so
as not to confuse poor programmers such as myself.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Dan McGee 2011-08-11 09:04:01 -05:00 committed by Lukas Fleischer
parent 34fe0bec4c
commit 45a50d4a66
2 changed files with 2 additions and 3 deletions

View file

@ -301,9 +301,6 @@ function pkgname_is_blacklisted($name, $dbh=NULL) {
# display package details # display package details
# #
function package_details($id=0, $SID="", $dbh=NULL) { function package_details($id=0, $SID="", $dbh=NULL) {
$atype = account_from_sid($SID);
$uid = uid_from_sid($SID);
if(!$dbh) { if(!$dbh) {
$dbh = db_connect(); $dbh = db_connect();
} }

View file

@ -1,4 +1,6 @@
<?php <?php
$atype = account_from_sid($SID);
$uid = uid_from_sid($SID);
$pkgid = intval($_REQUEST['ID']); $pkgid = intval($_REQUEST['ID']);
if ($uid == $row["MaintainerUID"] or if ($uid == $row["MaintainerUID"] or