diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-27 21:35:29 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-27 21:35:29 +0000 |
commit | bd4fd76bfb94a7b4af0f85838ac9e539e730fa5d (patch) | |
tree | 5685b8fdcc51ff11e7a21be25bd54fabf6d8afdc /apps/bookmarks/appinfo | |
parent | ef33219e4f83652676c7a668b6126c3c1c0da34d (diff) | |
download | nextcloud-server-bd4fd76bfb94a7b4af0f85838ac9e539e730fa5d.tar.gz nextcloud-server-bd4fd76bfb94a7b4af0f85838ac9e539e730fa5d.zip |
Fix bookmarks migration provider
Diffstat (limited to 'apps/bookmarks/appinfo')
-rw-r--r-- | apps/bookmarks/appinfo/migrate.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/bookmarks/appinfo/migrate.php b/apps/bookmarks/appinfo/migrate.php index 02c96e59632..603a8b72d3c 100644 --- a/apps/bookmarks/appinfo/migrate.php +++ b/apps/bookmarks/appinfo/migrate.php @@ -48,9 +48,9 @@ class OC_Migration_Provider_Bookmarks extends OC_Migration_Provider{ } // Now tags foreach($idmap as $oldid => $newid){ - $query = $this->content->prepare( "SELECT * FROM bookmarks_tags WHERE user_id LIKE ?" ); + $query = $this->content->prepare( "SELECT * FROM bookmarks_tags WHERE bookmark_id LIKE ?" ); $results = $query->execute( array( $oldid ) ); - while( $row = $data->fetchRow() ){ + while( $row = $results->fetchRow() ){ // Import the tags for this bookmark, using the new bookmark id $query = OC_DB::prepare( "INSERT INTO *PREFIX*bookmarks_tags(bookmark_id, tag) VALUES (?, ?)" ); $query->execute( array( $newid, $row['tag'] ) ); |