Minor Fix: add username in search criteria
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@270 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
2ea21d96c1
commit
e8afc9d82c
1 changed files with 2 additions and 1 deletions
|
@ -351,6 +351,7 @@ class BookmarkService {
|
||||||
for ($i = 0; $i < count($aTerms); $i++) {
|
for ($i = 0; $i < count($aTerms); $i++) {
|
||||||
$query_4 .= ' AND (B.bTitle LIKE "%'. $this->db->sql_escape($aTerms[$i]) .'%"';
|
$query_4 .= ' AND (B.bTitle LIKE "%'. $this->db->sql_escape($aTerms[$i]) .'%"';
|
||||||
$query_4 .= ' OR B.bDescription LIKE "%'. $this->db->sql_escape($aTerms[$i]) .'%"';
|
$query_4 .= ' OR B.bDescription LIKE "%'. $this->db->sql_escape($aTerms[$i]) .'%"';
|
||||||
|
$query_4 .= ' OR U.username = "'. $this->db->sql_escape($aTerms[$i]) .'"'; //exact match for username
|
||||||
if ($dotags) {
|
if ($dotags) {
|
||||||
$query_4 .= ' OR T.tag = "'. $this->db->sql_escape($aTerms[$i]) .'"';
|
$query_4 .= ' OR T.tag = "'. $this->db->sql_escape($aTerms[$i]) .'"';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue