| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | protected $holds_email_values = true; |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param $type string | |
| 18 | + * @param string $type | |
| 19 | 19 | * |
| 20 | 20 | * @return void |
| 21 | 21 | */ |
| 22 | 22 | protected function set_type( $type ) { |
| @@ -45,9 +45,10 @@ | ||
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @return false|string | |
| 49 | + * @param array $args | |
| 50 | + * @return string | |
| 50 | 51 | */ |
| 51 | 52 | public function front_field_input( $args, $shortcode_atts ) { |
| 52 | 53 | $pass_args = array( |
| 53 | 54 | 'errors' => $args['errors'], |
| @@ -58,7 +59,7 @@ | ||
| 58 | 59 | do_action( 'frm_form_field_' . $this->type, $this->field, $args['field_name'], $pass_args ); |
| 59 | 60 | $input_html = ob_get_contents(); |
| 60 | 61 | ob_end_clean(); |
| 61 | 62 | |
| 62 | - return $input_html; | |
| 63 | + return is_string( $input_html ) ? $input_html : ''; | |
| 63 | 64 | } |
| 64 | 65 | } |