| @@ -44,12 +44,12 @@ | ||
| 44 | 44 | */ |
| 45 | 45 | protected $format = 'text'; |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @var FrmTableHTMLGenerator|null | |
| 48 | + * @var FrmTableHTMLGenerator | |
| 49 | 49 | * @since 2.04 |
| 50 | 50 | */ |
| 51 | - protected $table_generator; | |
| 51 | + protected $table_generator = null; | |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * @var array |
| 55 | 55 | * @since 2.04 |
| @@ -158,9 +158,9 @@ | ||
| 158 | 158 | if ( ! $this->form_id || empty( $this->fields ) ) { |
| 159 | 159 | return ''; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | - if ( $this->format === 'array' ) { | |
| 162 | + if ( $this->format == 'array' ) { | |
| 163 | 163 | $content = $this->get_array(); |
| 164 | 164 | } elseif ( $this->is_plain_text_format() ) { |
| 165 | 165 | $content = $this->get_plain_text(); |
| 166 | 166 | } else { |
| @@ -203,9 +203,9 @@ | ||
| 203 | 203 | * |
| 204 | 204 | * @return string |
| 205 | 205 | */ |
| 206 | 206 | protected function get_table() { |
| 207 | - $content = $this->table_generator->generate_table_header(); | |
| 207 | + $content = $this->table_generator->generate_table_header(); | |
| 208 | 208 | $content .= $this->generate_content_for_all_fields(); |
| 209 | 209 | $content .= $this->table_generator->generate_table_footer(); |
| 210 | 210 | |
| 211 | 211 | return $content; |