summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/Service
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-07-09 10:04:35 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-07-09 10:04:35 +0000
commit31570df64ce6543de407e7b9d751ba9033d930de (patch)
tree476376c07ed4b238db32f79d0e5e6366e5a5b380 /src/SemanticScuttle/Service
parent1962e3d2bc30333d3dbe133c759fc650d6e8a5c7 (diff)
downloadsemanticscuttle-31570df64ce6543de407e7b9d751ba9033d930de.tar.gz
semanticscuttle-31570df64ce6543de407e7b9d751ba9033d930de.tar.bz2
Fix bug getTagsForBookmarks() that fetched all tags, see http://sourceforge.net/projects/semanticscuttle/forums/forum/759510/topic/3752670 for details
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@715 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle/Service')
-rw-r--r--src/SemanticScuttle/Service/Bookmark2Tag.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark2Tag.php b/src/SemanticScuttle/Service/Bookmark2Tag.php
index d6c0e58..4d2c969 100644
--- a/src/SemanticScuttle/Service/Bookmark2Tag.php
+++ b/src/SemanticScuttle/Service/Bookmark2Tag.php
@@ -325,13 +325,8 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
return array();
}
- $sql = '';
- foreach ($bookmarkids as $bookmarkid) {
- $sql .= ' OR bId = ' . intval($bookmarkid);
- }
-
$query = 'SELECT tag, bId FROM ' . $this->getTableName()
- . ' WHERE (1' . $sql . ')'
+ . ' WHERE bId IN (' . implode(',', $bookmarkids) . ')'
. ' AND LEFT(tag, 7) <> "system:"'
. ' ORDER BY id, bId ASC';