summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-18 07:21:52 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-18 08:07:03 +0200
commit3d07a58aac265e706d2202832eef83ba59cf7c2e (patch)
treec39d06afe673b17f5a86b3fbcdf01bd602faafc4 /web/lib/pkgfuncs.inc.php
parent0608bcae1253d5663289d67c0f31c80f3b203793 (diff)
downloadaur-3d07a58aac265e706d2202832eef83ba59cf7c2e.tar.gz
aur-3d07a58aac265e706d2202832eef83ba59cf7c2e.tar.xz
pkgfuncs.inc.php: Fix pkg_change_category()
Make sure that pkg_change_category() works, even if the "N" get parameter is used and "ID" is unset. Note that this is considered to be a hack rather than a proper fix; pkg_change_category() needs a lot of work. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 1351e725..6fad628d 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -1212,6 +1212,8 @@ function pkg_change_category($atype, $dbh=NULL) {
if (isset($_GET["ID"])) {
$pid = $_GET["ID"];
+ } elseif (isset($_GET["N"])) {
+ $pid = pkgid_from_name($_GET["N"]);
} else {
return __("Missing package ID.");
}