lcollong
FabriKant d'applications web
Hi,
I've got a divide by zero error on line 32 of this file : templates/jp-exchange/html/layouts/com_fabrik/fabrik-bootstrap-grid.php part of the Fabrik-Joomla-alt-layouts uikit I've just downloaded from github.
Actually the code says :
But the $d->columns array contains only one key (0, not 1) with a value of 3.
according to the line 15 : $d->columns = (array) $d->columns;
I guess the lines 32/33 should use $d->columns[0] instead of $d->columns[1] ?
I've got a divide by zero error on line 32 of this file : templates/jp-exchange/html/layouts/com_fabrik/fabrik-bootstrap-grid.php part of the Fabrik-Joomla-alt-layouts uikit I've just downloaded from github.
Actually the code says :
PHP:
foreach ($d->items as $i => $s)
{
$endLine = ($i !== 0 && (($i) % $d->columns[1] == 0));
$newLine = ($i % $d->columns[1] == 0);
But the $d->columns array contains only one key (0, not 1) with a value of 3.
according to the line 15 : $d->columns = (array) $d->columns;
I guess the lines 32/33 should use $d->columns[0] instead of $d->columns[1] ?