summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortardo <tardo@nagi-fanboi.net>2007-10-02 14:16:49 -0400
committerPaul Mattal <paul@mattal.com>2007-10-11 08:58:20 -0400
commitab3837ab3a327774fe706bfc8cadaea81b538b19 (patch)
tree4f441476648b6ee9bbce07df9e92e6ed26a81f1c
parent8aec7ba941c26c8795eba71ac4bc3af9bd717d68 (diff)
downloadaurweb-ab3837ab3a327774fe706bfc8cadaea81b538b19.tar.xz
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 <tardo@nagi-fanboi.net>
-rw-r--r--web/lib/pkgfuncs.inc2
1 files changed, 1 insertions, 1 deletions
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) {