| @@ -19,10 +19,9 @@ | ||
| 19 | 19 | echo FrmAppHelper::maybe_kses( $message ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 20 | 20 | } |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | -if ( isset( $errors ) && is_array( $errors ) && ! empty( $errors ) ) { | |
| 24 | - | |
| 23 | +if ( ! empty( $errors ) && is_array( $errors ) ) { | |
| 25 | 24 | if ( isset( $form ) && is_object( $form ) ) { |
| 26 | 25 | FrmFormsHelper::get_scroll_js( $form->id ); |
| 27 | 26 | } |
| 28 | 27 | ?> |
| @@ -40,9 +39,9 @@ | ||
| 40 | 39 | |
| 41 | 40 | ?> |
| 42 | 41 | </div> |
| 43 | 42 | <?php |
| 44 | -} | |
| 43 | +}//end if | |
| 45 | 44 | |
| 46 | 45 | if ( isset( $include_extra_container ) ) { |
| 47 | 46 | ?> |
| 48 | 47 | </div> |