diff options
author | 2009-05-19 11:07:52 +0000 | |
---|---|---|
committer | 2009-05-19 11:07:52 +0000 | |
commit | 7f60def270c6406cf2ae4260fd825d6a10970980 (patch) | |
tree | bc09f9eb9b882eff139091e0925b41013ef85c52 /services | |
parent | 9b7e6613409a5406121b673de2ad53518414ab9a (diff) | |
download | scuttle-7f60def270c6406cf2ae4260fd825d6a10970980.tar.gz scuttle-7f60def270c6406cf2ae4260fd825d6a10970980.zip |
Behaviour change: search in tags with LIKE match (and not exact match)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@323 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services')
-rw-r--r-- | services/bookmarkservice.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php index f41df53..355a4cd 100644 --- a/services/bookmarkservice.php +++ b/services/bookmarkservice.php @@ -384,10 +384,10 @@ class BookmarkService { for ($i = 0; $i < count($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.bPrivateNote = "'. $this->db->sql_escape($aTerms[$i]) .'"'; //warning : search in private notes of everybody but private notes won't appear if not allowed. + $query_4 .= ' OR B.bPrivateNote LIKE "'. $this->db->sql_escape($aTerms[$i]) .'%"'; //warning : search in private notes of everybody but private notes won't appear if not allowed. $query_4 .= ' OR U.username = "'. $this->db->sql_escape($aTerms[$i]) .'"'; //exact match for username if ($dotags) { - $query_4 .= ' OR T.tag = "'. $this->db->sql_escape($aTerms[$i]) .'"'; + $query_4 .= ' OR T.tag LIKE "'. $this->db->sql_escape($aTerms[$i]) .'%"'; } $query_4 .= ')'; } |