needed a has_where clause before the LocationID parameter to the query builder
This commit is contained in:
pjmattal 2005-02-28 19:34:11 +00:00
parent ac7e555b34
commit 93ac7cb91d

View file

@ -488,7 +488,11 @@ function pkg_search_page($SID="") {
$has_where = 1; $has_where = 1;
if (intval($_REQUEST["L"])) { if (intval($_REQUEST["L"])) {
if (!$has_where) {
$q.= "WHERE LocationID = ".intval($_REQUEST["L"])." "; $q.= "WHERE LocationID = ".intval($_REQUEST["L"])." ";
} else {
$q .= "AND LocationID = ".intval($_REQUEST["L"])." ";
}
$has_where = 1; $has_where = 1;
} }
if (intval($_REQUEST["C"])) { if (intval($_REQUEST["C"])) {