We don't have Quick Reply Here!
We have this same problem on this board
here.
This is the error when you vote:
Warning: Variable passed to each() is not an array or object in /home/measurection/htdocs/forums/viewpoll.php on line 71
This is the offtending code in viewpoll.php:
code:
// Loop through the results to figure out the percentages
while(list($key,$value) = each($options)) {
$division = $totalvotes * 1000;
$thisone = $options[$key]['1'] * 1000;
if ($division) {
$per = ($thisone/$division);
}
list($crap,$percent) = split("\.",$per);
if ($percent < 10) {
$percent .= "0";
}
$percent = substr($percent,0,2);
if ($per == 1) { $percent = "100"; }
$options[$key]['3'] = $percent;
}
$dbh -> finish_sth($sth);
Why doesn't it seem to like $options?
Sometimes it works....sometimes it doesn't. I don't see a conflicting $options being used with the anchors away or quick reply mod....
Must be something else.