summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-16 22:50:35 +0000
committerTom Needham <needham.thomas@gmail.com>2012-03-16 22:50:35 +0000
commit5332c319a2140563478d83047d9f717c0d3e179f (patch)
treefe14a41d09cb9deee7a5c6c78df2e54438b962e7 /apps/bookmarks
parentc442a06a0217afa8ff284333b0560aeb87db7a55 (diff)
downloadnextcloud-server-5332c319a2140563478d83047d9f717c0d3e179f.tar.gz
nextcloud-server-5332c319a2140563478d83047d9f717c0d3e179f.zip
Migration info is an object. Other fixes
Diffstat (limited to 'apps/bookmarks')
-rw-r--r--apps/bookmarks/lib/migrate.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/bookmarks/lib/migrate.php b/apps/bookmarks/lib/migrate.php
index 4f11bc5bdea..46b68ad5baa 100644
--- a/apps/bookmarks/lib/migrate.php
+++ b/apps/bookmarks/lib/migrate.php
@@ -34,16 +34,16 @@ class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
// Import function for bookmarks
function import( $info ){
- switch( $info['appversion'] ){
+ switch( $info->appversion ){
default:
// All versions of the app have had the same db structure, so all can use the same import function
$query = OC_Migrate::prepare( "SELECT * FROM bookmarks WHERE user_id LIKE ?" );
- $results = $query->execute( array( $info['olduid'] ) );
+ $results = $query->execute( array( $info->olduid ) );
$idmap = array();
while( $row = $data->fetchRow() ){
// Import each bookmark, saving its id into the map
$query = OC_DB::prepare( "INSERT INTO *PREFIX*bookmarks(url, title, user_id, public, added, lastmodified) VALUES (?, ?, ?, ?, ?, ?)" );
- $query->execute( array( $row['url'], $row['title'], $info['newuid'], $row['public'], $row['added'], $row['lastmodified'] ) );
+ $query->execute( array( $row['url'], $row['title'], $info->newuid, $row['public'], $row['added'], $row['lastmodified'] ) );
// Map the id
$idmap[$row['id']] = OC_DB::insertid();
}