diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-27 20:43:44 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-27 20:43:44 +0000 |
commit | b201e5152840406f0b5de9a403fd8f6ceedd3636 (patch) | |
tree | e8b44fe9fc95bbb5e6897e7d92c05dcd25c07b12 /lib/migration | |
parent | c8acd4a594d4ed21f9becca927762aa83f24c3d3 (diff) | |
download | nextcloud-server-b201e5152840406f0b5de9a403fd8f6ceedd3636.tar.gz nextcloud-server-b201e5152840406f0b5de9a403fd8f6ceedd3636.zip |
Stop error on export
Diffstat (limited to 'lib/migration')
-rw-r--r-- | lib/migration/provider.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/migration/provider.php b/lib/migration/provider.php index d592ed67264..98804ee91c9 100644 --- a/lib/migration/provider.php +++ b/lib/migration/provider.php @@ -32,13 +32,14 @@ abstract class OC_Migration_Provider{ * @breif sets the OC_Migration_Content object to $this->content * @param $content a OC_Migration_Content object */ - public function setData( $uid, $content, $info=false ){ + public function setData( $uid, $content, $info=null ){ $this->content = $content; $this->uid = $uid; - $this->olduid = $info->exporteduser; + if( !is_null( $info ) ){ + $this->olduid = $info->exporteduser; + $this->appinfo = $info->apps->$id; + } $id = $this->id; - $this->appinfo = $info->apps->$id; - } /** |