aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-17 10:38:38 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-17 10:38:38 +0000
commitdd87df68234d628104d3b3bb73361145824c58f4 (patch)
tree721f2419b73236982d51709aaca7dca32fecc0c7
parent9c00383f0f7f20326025010e3819528582add734 (diff)
downloadsemanticscuttle-dd87df68234d628104d3b3bb73361145824c58f4.tar.gz
semanticscuttle-dd87df68234d628104d3b3bb73361145824c58f4.tar.bz2
New feature: search is done among private notes.
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@287 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--services/bookmarkservice.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/bookmarkservice.php b/services/bookmarkservice.php
index 22044f2..dd23d93 100644
--- a/services/bookmarkservice.php
+++ b/services/bookmarkservice.php
@@ -373,7 +373,8 @@ 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
+ $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 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]) .'"';
}