diff --git a/includes/class-kadence-blocks-css.php b/includes/class-kadence-blocks-css.php index 24fefb91b..9a5cdb3f6 100644 --- a/includes/class-kadence-blocks-css.php +++ b/includes/class-kadence-blocks-css.php @@ -1393,7 +1393,12 @@ public function render_row_gap_property( $attributes, $name = array( 'gap', 'tab $attributes[ $name[2] ] = $attributes[ $name[1] ]; } if ( $attributes[ $name[1] ] === 'custom' && empty( $attributes[ $custom ][1] ) ) { - $attributes[ $custom ][1] = $attributes[ $custom ][0]; + if (isset($attributes[$custom][0])) { + $attributes[$custom][1] = $attributes[$custom][0]; + } else { + // Handle the scenario where $attributes[$custom][0] is not set. + $attributes[$custom][1] = ''; // Default empty string. + } } if ( $attributes[ $name[2] ] === 'custom' && empty( $attributes[ $custom ][2] ) ) { $attributes[ $custom ][2] = $attributes[ $custom ][1];