mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
34fe0bec4c
commit
45a50d4a66
2 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
$atype = account_from_sid($SID);
|
||||
$uid = uid_from_sid($SID);
|
||||
|
||||
$pkgid = intval($_REQUEST['ID']);
|
||||
if ($uid == $row["MaintainerUID"] or
|
||||
|
|
Loading…
Add table
Reference in a new issue