Completed
Pull Request — master (#2478)
by
unknown
47s
created
classes/controllers/FrmEmailStylesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 		// Check if the selected style is available and selectable.
91 91
 		$styles = self::get_email_styles();
92 92
 		$style  = $frm_settings->email_style;
93
-		if ( isset( $styles[ $style ] ) && ! empty( $styles[ $style ]['selectable'] ) ) {
93
+		if ( isset( $styles[$style] ) && ! empty( $styles[$style]['selectable'] ) ) {
94 94
 			return $style;
95 95
 		}
96 96
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 		}
250 250
 
251 251
 		$styles = self::get_email_styles();
252
-		if ( ! isset( $styles[ $style_key ] ) ) {
252
+		if ( ! isset( $styles[$style_key] ) ) {
253 253
 			die( esc_html( $not_exist_msg ) );
254 254
 		}
255 255
 
Please login to merge, or discard this patch.
classes/views/frm-form-actions/_email_settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
 			if ( empty( $style['selectable'] ) ) {
26 26
 				$option_attrs['disabled'] = 'disabled';
27
-				$option_label             .= ' ' . __( '(Pro)', 'formidable' );
27
+				$option_label .= ' ' . __( '(Pro)', 'formidable' );
28 28
 			}
29 29
 
30 30
 			if ( $style_key === $default_style ) {
Please login to merge, or discard this patch.