- small refactor;

This commit is contained in:
nikitasinelnikov
2020-02-19 14:40:23 +02:00
parent e5c475693a
commit cf9cc22d41
+4 -4
View File
@@ -3056,10 +3056,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$output .= '</div>';
if ( $this->is_error( $form_key) ) {
$output .= $this->field_error( $this->show_error( $form_key) );
}else if ( $this->is_notice( $form_key) ) {
$output .= $this->field_notice( $this->show_notice( $form_key) );
if ( $this->is_error( $form_key ) ) {
$output .= $this->field_error( $this->show_error( $form_key ) );
} elseif ( $this->is_notice( $form_key ) ) {
$output .= $this->field_notice( $this->show_notice( $form_key ) );
}