From ab3837ab3a327774fe706bfc8cadaea81b538b19 Mon Sep 17 00:00:00 2001 From: tardo Date: Tue, 2 Oct 2007 14:16:49 -0400 Subject: Remove unnecessary locations from search criteria. Currently, locations include none/current/extra/unstable. Since no package should be located in such an area, there's no point in including them in search criteria. The proper way to do this might be to delete the SQL table data relating to this, but this will suffice for now. Signed-off-by: tardo --- web/lib/pkgfuncs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index f8d7236..66fa9ec 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -110,7 +110,7 @@ function pkgCategories() { function pkgLocations() { $locs = array(); $dbh = db_connect(); - $q = "SELECT * FROM PackageLocations WHERE ID != 1 "; + $q = "SELECT * FROM PackageLocations WHERE ID != 1 AND ID < 4 "; $q.= "ORDER BY Location ASC"; $result = db_query($q, $dbh); if ($result) { -- cgit v1.2.3-70-g09d2