Closed (fixed)
Project:
Content Optimizer
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2009 at 06:37 UTC
Updated:
2 Jun 2010 at 16:32 UTC
I'm getting a "warning: Division by zero ... on line 361" after clicking on Optimize.
This is the code, but i can't figure it out:
// prominence = ($totalwords - (($positionsum - 1) / $positionsnum)) * (100 / $totalwords)
$ret['keyword_prominence'] = 0;
if($ret['keyword_count']) {
$ret['keyword_prominence'] = ($ret['word_count'] - (($ret['keyword_positionsum'] - 1) / $ret['keyword_count'])) * (100 / $ret['word_count']);
}
Comments
Comment #1
TomDude48 commented