Warning: Division by zero in /home/mhd-01/www.miosito.com/htdocs/templates/yoo_vox/html/com_content/frontpage/default.php on line 39
questo è l'errore che visualizzo sul mio sito.
E questo è il contenuto del file default.php dalla riga 35 alla numero 86. C'è una divisione per 0 ma come risolverla?
if ($i < $this->total) {
// init vars
$count = min($this->params->get('num_intro_articles', 4), ($this->total - $i));
$rows = ceil($count / $this->params->get('num_columns', 1));
$columns = array();
$row = 0;
$column = 0;
// create intro columns
for ($j = 0; $j < $count; $j++, $i++) {
if ($this->params->get('multi_column_order', 1) == 0) {
// order down
if ($row >= $rows) {
$column++;
$row = 0;
$rows = ceil(($count - $j) / ($this->params->get('num_columns', 2) - $column));
}
$row++;
} else {
// order across
$column = $j % $this->params->get('num_columns', 2);
}
if (!isset($columns[$column])) {
$columns[$column] = '';
}
$this->item =& $this->getItem($i, $this->params);
$columns[$column] .= $this->loadTemplate('item');
}
// render intro columns
$count = count($columns);
if ($count) {
if ($count != 1) {
echo '<div class="teaserarticles multicolumns">';
} else {
echo '<div class="teaserarticles">';
}
for ($j = 0; $j < $count; $j++) {
$firstlast = "";
if ($count != 1) {
if ($j == 0) $firstlast = "first";
if ($j == $count - 1) $firstlast = "last";
}
echo '<div class="'.$firstlast.' float-left width'.intval(100 / $count).'">'.$columns[$j].'</div>';
}
echo '</div>';
}
}
Grazie in anticipo per il vostro aiuto.