From 70458f4646e3440e3ad82dd41b660887387d1ad8 Mon Sep 17 00:00:00 2001 From: Josh Oakes Date: Tue, 25 Jun 2024 10:21:59 -0500 Subject: [PATCH] PHP compatibility fix --- includes/blocks/class-kadence-blocks-row-layout-block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/blocks/class-kadence-blocks-row-layout-block.php b/includes/blocks/class-kadence-blocks-row-layout-block.php index 77e2ee065..7ac61a86e 100644 --- a/includes/blocks/class-kadence-blocks-row-layout-block.php +++ b/includes/blocks/class-kadence-blocks-row-layout-block.php @@ -111,7 +111,7 @@ public function get_custom_layout( $css, $columns, $gap = '', $column1 = null, $ //assume the last column width to make 100 $column_width = abs( $column_width_sum - 100 ); } - $grid_layout_string .= 'minmax(0, calc(' . $column_width . '% - ((' . $gap_string . ' * ' . $columns - 1 . ' )/' . $columns . ')))'; + $grid_layout_string .= 'minmax(0, calc(' . $column_width . '% - ((' . $gap_string . ' * ' . ($columns - 1) . ' )/' . $columns . ')))'; $column_width_sum += $column_width; } }