| @@ -271,11 +271,9 @@ | ||
| 271 | 271 | if ( ! $style_key ) { |
| 272 | 272 | die( esc_html( $not_exist_msg ) ); |
| 273 | 273 | } |
| 274 | 274 | |
| 275 | - $styles = self::get_email_styles(); | |
| 276 | - | |
| 277 | - if ( ! isset( $styles[ $style_key ] ) ) { | |
| 275 | + if ( ! isset( self::get_email_styles()[ $style_key ] ) ) { | |
| 278 | 276 | die( esc_html( $not_exist_msg ) ); |
| 279 | 277 | } |
| 280 | 278 | |
| 281 | 279 | $style_key = FrmAppHelper::get_param( 'style_key', '', 'sanitize_text_field' ); |