diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-02-11 10:02:00 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-02-11 10:02:00 +0000 |
commit | e8afc9d82ceaee9feab73d6d121a758b2ea6744e (patch) | |
tree | 36c501df5885c8c440c7fb7d23ddc278310327aa | |
parent | 2ea21d96c108d0d21aa38712ec884991a9600f78 (diff) | |
download | semanticscuttle-e8afc9d82ceaee9feab73d6d121a758b2ea6744e.tar.gz semanticscuttle-e8afc9d82ceaee9feab73d6d121a758b2ea6744e.tar.bz2 |
Minor Fix: add username in search criteria
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@270 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r-- | services/bookmarkservice.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php index 5a0137e..e77e40d 100644 --- a/services/bookmarkservice.php +++ b/services/bookmarkservice.php @@ -337,7 +337,7 @@ class BookmarkService { if ($terms) { // Multiple search terms okay $aTerms = explode(' ', $terms); - $aTerms = array_map('trim', $aTerms); + $aTerms = array_map('trim', $aTerms); // Search terms in tags as well when none given if (!count($tags)) { @@ -351,6 +351,7 @@ 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 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]) .'"'; } |