| @@ -113,9 +113,9 @@ | ||
| 113 | 113 | $theme_name = str_replace( $settings['type'] . '_', '', $theme_name ); |
| 114 | 114 | if ( ! empty( $settings['custom_type'] ) ) { |
| 115 | 115 | $theme_name = str_replace( $settings['custom_type'] . '_', '', $theme_name ); |
| 116 | 116 | } |
| 117 | - $params = wp_parse_args( $settings['notification-template'], $defaults ); | |
| 117 | + $params = wp_parse_args( isset( $settings['notification-template'] ) && is_array( $settings['notification-template'] ) ? $settings['notification-template'] : array(), $defaults ); | |
| 118 | 118 | |
| 119 | 119 | foreach ( $params as $param => $element ) { |
| 120 | 120 | if ( $element == 'tag_custom' && isset( $params[ 'custom_' . $param ] ) ) { |
| 121 | 121 | // getting value of custom params. |