Skip to content

Commit

Permalink
Cannot access offset of type string on string Profile Feature #1227
Browse files Browse the repository at this point in the history
  • Loading branch information
olatechpro committed Nov 28, 2024
1 parent 29521a7 commit a39f4c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/features/profile-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ class="check-item check-all-menu-item"
$restrict_value = $section_array['elements'];
$element_type = $section_array['element_type'];

if (!is_array($section_array) || empty($section_array)) {
continue;
}

if (in_array($element_type, ['section', 'header'])) :
?>
<tr class="ppc-menu-row parent-menu ppc-sortable-row <?php echo esc_attr($section_id); ?>"
Expand Down

0 comments on commit a39f4c5

Please sign in to comment.