From 8b0011b6b52c93c52619122653c8f446059b5ce8 Mon Sep 17 00:00:00 2001 From: udera Date: Fri, 27 Feb 2015 18:59:29 +0100 Subject: [PATCH 1/2] =?UTF-8?q?remove=20fixed=20=E2=80=9Coc=5F=E2=80=9D-pr?= =?UTF-8?q?efix.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/lib/bookmarks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/lib/bookmarks.php b/controller/lib/bookmarks.php index 251e1749..ac3071f7 100644 --- a/controller/lib/bookmarks.php +++ b/controller/lib/bookmarks.php @@ -491,7 +491,7 @@ class Bookmarks { if ($dbtype === 'mysql') { $sql .= 'from dual '; } - $sql .= 'where not exists(select * from oc_bookmarks_tags where bookmark_id = ? and tag = ?)'; + $sql .= 'where not exists(select * from `*PREFIX*bookmarks_tags` where bookmark_id = ? and tag = ?)'; $query = $db->prepareQuery($sql); foreach ($tags as $tag) { From fa6c92286827e8323e152b099adeb0ddc28c1e69 Mon Sep 17 00:00:00 2001 From: tflidd Date: Sat, 18 Apr 2015 16:46:15 +0200 Subject: [PATCH 2/2] more ticks --- controller/lib/bookmarks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/lib/bookmarks.php b/controller/lib/bookmarks.php index ac3071f7..e84b9e9a 100644 --- a/controller/lib/bookmarks.php +++ b/controller/lib/bookmarks.php @@ -491,7 +491,7 @@ class Bookmarks { if ($dbtype === 'mysql') { $sql .= 'from dual '; } - $sql .= 'where not exists(select * from `*PREFIX*bookmarks_tags` where bookmark_id = ? and tag = ?)'; + $sql .= 'where not exists(select * from `*PREFIX*bookmarks_tags` where `bookmark_id` = ? and `tag` = ?)'; $query = $db->prepareQuery($sql); foreach ($tags as $tag) {