mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
slap bug #3068, fix pkg searching in pkgnames
This commit is contained in:
parent
e728d27560
commit
f99ef319fd
1 changed files with 2 additions and 2 deletions
|
@ -759,11 +759,11 @@ function pkg_search_page($SID="") {
|
||||||
}
|
}
|
||||||
if ($K) {
|
if ($K) {
|
||||||
if (!$has_where) {
|
if (!$has_where) {
|
||||||
$q.= "WHERE (Name LIKE '".mysql_escape_string($K)."%' OR ";
|
$q.= "WHERE (Name LIKE '%".mysql_escape_string($K)."%' OR ";
|
||||||
$q.= "Description LIKE '%".mysql_escape_string($K)."%') ";
|
$q.= "Description LIKE '%".mysql_escape_string($K)."%') ";
|
||||||
$has_where = 1;
|
$has_where = 1;
|
||||||
} else {
|
} else {
|
||||||
$q.= "AND (Name LIKE '".mysql_escape_string($K)."%' OR ";
|
$q.= "AND (Name LIKE '%".mysql_escape_string($K)."%' OR ";
|
||||||
$q.= "Description LIKE '%".mysql_escape_string($K)."%') ";
|
$q.= "Description LIKE '%".mysql_escape_string($K)."%') ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue