| @@ -6,8 +6,11 @@ | ||
| 6 | 6 | |
| 7 | 7 | if ( isset( $config['sections'] ) && ! empty( $config['sections'] ) ) { |
| 8 | 8 | |
| 9 | 9 | foreach ( $config['sections'] as $id => $section ) { |
| 10 | + if ( empty( $section['title'] ) ) { | |
| 11 | + $section['title'] = 'No Title'; | |
| 12 | + } | |
| 10 | 13 | $customify_sections[$id] = $section['title']; |
| 11 | 14 | } |
| 12 | 15 | |
| 13 | 16 | } |
| @@ -17,8 +20,11 @@ | ||
| 17 | 20 | foreach ( $config['panels'] as $panel_id => $panel ) { |
| 18 | 21 | |
| 19 | 22 | if ( isset( $panel['sections'] ) && ! empty( $panel['sections'] ) ) { |
| 20 | 23 | foreach ( $panel['sections'] as $id => $section ) { |
| 24 | + if ( empty( $section['title'] ) ) { | |
| 25 | + $section['title'] = 'No Title'; | |
| 26 | + } | |
| 21 | 27 | $customify_sections[$id] = $section['title']; |
| 22 | 28 | } |
| 23 | 29 | } |
| 24 | 30 | } |