json encode the output

This commit is contained in:
Tom Needham 2012-03-13 17:04:49 +00:00
parent 4d5646a59f
commit 111af7fed5
1 changed files with 1 additions and 1 deletions

View 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');