From cf9cc22d4173b6235fc5dd17ca896a0d80370909 Mon Sep 17 00:00:00 2001 From: nikitasinelnikov Date: Wed, 19 Feb 2020 14:40:23 +0200 Subject: [PATCH] - small refactor; --- includes/core/class-fields.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 330b3139..8422e6e9 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -3056,10 +3056,10 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= ''; - 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 ) ); }