Skip to content

Commit

Permalink
Quick Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed Dec 8, 2020
1 parent cb1e481 commit fc65c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/cck_field/group_x/group_x.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ protected static function _getHtml( $field, $group, $i, $size_group, $buttons, &
$html .= '<div id="'.$rId.'_form_'.$field->name.'_'.$i.'" class="cck_cgx cck_cgx_form">';
}

if ( count( $group ) ) {
if ( is_array( $group ) && count( $group ) ) {
foreach ( $group as $elem ) {
if ( $elem->display > 1 ) {
if ( $elem->markup == 'none' ) {
Expand Down

0 comments on commit fc65c78

Please sign in to comment.