diff --git a/e107_plugins/featurebox/e_shortcode.php b/e107_plugins/featurebox/e_shortcode.php index 6c2e8d0fa..091dd3a5f 100644 --- a/e107_plugins/featurebox/e_shortcode.php +++ b/e107_plugins/featurebox/e_shortcode.php @@ -1,7 +1,7 @@ setParam('counter', $counter) ->setParam('cols', $cols) ->setParam('col_counter', $col_counter) + ->setParam('cols_counter', $cols_counter) ->setParam('limit', $category->get('fb_category_limit')) ->setParam('total', $total) ->setCategory($category) ->toHTML($tmpl_item); - + + if($cols == $col_counter) + { + $cols_counter++; + } $counter++; $col_counter++;