]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
New feature: search is done among private notes.
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 17 Feb 2009 10:38:38 +0000 (10:38 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 17 Feb 2009 10:38:38 +0000 (10:38 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@287 b3834d28-1941-0410-a4f8-b48e95affb8f

services/bookmarkservice.php

index 22044f2d05ab0588d1338473c53dc1b6ad056dae..dd23d93a21dd5e28d3ce8d89b2c00802d429da5d 100644 (file)
@@ -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]) .'"';
                                }