#204996 by chx: poll bar theme gets NULL as default, so use that here as well
parent
178c28535b
commit
07d32d0521
|
@ -643,7 +643,7 @@ function poll_view_results(&$node, $teaser, $page, $block) {
|
|||
$poll_results = '';
|
||||
foreach ($node->choice as $i => $choice) {
|
||||
if (!empty($choice['chtext'])) {
|
||||
$chvotes = isset($choice['chvotes']) ? $choice['chvotes'] : 0;
|
||||
$chvotes = isset($choice['chvotes']) ? $choice['chvotes'] : NULL;
|
||||
$poll_results .= theme('poll_bar', $choice['chtext'], $chvotes, $total_votes, isset($node->vote) && $node->vote == $i, $block);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue