Menu ▾ ▴

#1 Divizion on zero

0.4 blocker
open
nobody
Other (1)
5
2008-11-21
2008-11-21
Kirill
No

Page index.php?page=tags raize exception divizion by zero.
I change file core.advanced.php
$max = max($array);
if($max){
foreach($array as $title => $count) {
$output[] = array('size' => intval(8 + ($count / $max) * 18) . 'pt', 'title' => $title, 'count' => $count);
}
}

Discussion


Log in to post a comment.