mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fixed bug #2285
needed a has_where clause before the LocationID parameter to the query builder
This commit is contained in:
parent
ac7e555b34
commit
93ac7cb91d
1 changed files with 5 additions and 1 deletions
|
@ -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"])) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue