Commit 45a50d4a authored by Dan McGee's avatar Dan McGee Committed by Lukas Fleischer
Browse files

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: default avatarDan McGee <>
Signed-off-by: default avatarLukas Fleischer <>
parent 34fe0bec
......@@ -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();
$atype = account_from_sid($SID);
$uid = uid_from_sid($SID);
$pkgid = intval($_REQUEST['ID']);
if ($uid == $row["MaintainerUID"] or
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment