From 3d07a58aac265e706d2202832eef83ba59cf7c2e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 18 Jul 2012 07:21:52 +0200 Subject: 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 --- web/lib/pkgfuncs.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index 1351e72..6fad628 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."); } -- cgit v1.2.3-54-g00ecf