]> source.dussan.org Git - nextcloud-server.git/commitdiff
json encode the output
authorTom Needham <needham.thomas@gmail.com>
Tue, 13 Mar 2012 17:04:49 +0000 (17:04 +0000)
committerTom Needham <needham.thomas@gmail.com>
Tue, 13 Mar 2012 17:04:49 +0000 (17:04 +0000)
apps/user_migrate/settings.php

index 3b82e148b5cc77b3eeaeb4eb415ef6e44ad47e51..edad7357a2ae0ad1822d22ec80ac48aefd3746e2 100644 (file)
@@ -52,7 +52,7 @@ if (isset($_POST['user_export'])) {
     }
        
        // Migrate the app info
-       $info = OC_Migrate::export( $user );
+       $info = json_encode( OC_Migrate::export( $user ) );
        $infofile = $exportdir . '/exportinfo.json';
        if( !file_put_contents( $infofile, $info ) ){
                die('Failed to save the export info');