Commit 07d32d05 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#204996 by chx: poll bar theme gets NULL as default, so use that here as well

parent 178c2853
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment