]> source.dussan.org Git - nextcloud-server.git/commitdiff
Stop error on export
authorTom Needham <needham.thomas@gmail.com>
Tue, 27 Mar 2012 20:43:44 +0000 (20:43 +0000)
committerTom Needham <needham.thomas@gmail.com>
Tue, 27 Mar 2012 20:43:44 +0000 (20:43 +0000)
lib/migration/provider.php

index d592ed67264efed7a78e46725c5b0c3d7c37dc7a..98804ee91c96978dcb8bf21b136a4af0f9f162a4 100644 (file)
@@ -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;
-               
        }
                
        /**