| @@ -36,9 +36,10 @@ | ||
| 36 | 36 | |
| 37 | 37 | public function import( $data, $imported_data ): array { |
| 38 | 38 | $contents = $this->manifest['extra-content'] ?? []; |
| 39 | 39 | |
| 40 | - $extra_content = $this->loop( $contents, function($type, $content, $extra_content ) { | |
| 40 | + $extra_content = $this->loop( $contents, function($type, $content ) { | |
| 41 | + $extra_content = []; | |
| 41 | 42 | switch ( $type ) { |
| 42 | 43 | case 'form': |
| 43 | 44 | $import = $this->import_form( $content ); |
| 44 | 45 | $extra_content['form'] = $import; |