1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-26 23:54:25 +01:00

Merge pull request #144 from owncloud/backport-129-stable7

backport database fix from c30d34c to stable7
This commit is contained in:
blizzz 2015-04-20 13:41:43 +02:00
commit 2806b5014a

View File

@ -383,7 +383,7 @@ class OC_Bookmarks_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 = OCP\DB::prepare($sql);
foreach ($tags as $tag) {