diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-31 12:28:32 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-31 12:28:32 +0000 |
commit | 07d32d052198d9804f2755428a763d8f9ffc1452 (patch) | |
tree | f00cbfc29cf5dc61bb952293be5cebd68d35fb81 | |
parent | 178c28535b5ed1a693c9e9cf5de4c703bc2bf3c6 (diff) | |
download | brdo-07d32d052198d9804f2755428a763d8f9ffc1452.tar.gz brdo-07d32d052198d9804f2755428a763d8f9ffc1452.tar.bz2 |
#204996 by chx: poll bar theme gets NULL as default, so use that here as well
-rw-r--r-- | modules/poll/poll.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 7500eff8a..4d749a4f6 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -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); } } |