[aur-dev] [PATCH 1/2] Fix searching by category

Lukas Fleischer archlinux at cryptocrack.de
Sat Apr 5 11:47:35 EDT 2014


Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/lib/pkgfuncs.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index f5eb11d..76fed89 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -422,7 +422,7 @@ function pkg_search_page($SID="") {
 	 * variable values more sensible.
 	 */
 	if (isset($_GET["C"]) && intval($_GET["C"])) {
-		$q_where .= "AND Packages.CategoryID = ".intval($_GET["C"])." ";
+		$q_where .= "AND PackageBases.CategoryID = ".intval($_GET["C"])." ";
 	}
 
 	if (isset($_GET['K'])) {
-- 
1.9.1



More information about the aur-dev mailing list