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>
This commit is contained in:
tardo 2007-10-02 14:16:49 -04:00 committed by Paul Mattal
parent 8aec7ba941
commit ab3837ab3a

View file

@ -110,7 +110,7 @@ function pkgCategories() {
function pkgLocations() { function pkgLocations() {
$locs = array(); $locs = array();
$dbh = db_connect(); $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"; $q.= "ORDER BY Location ASC";
$result = db_query($q, $dbh); $result = db_query($q, $dbh);
if ($result) { if ($result) {