summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 00:26:36 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 00:26:36 +0000
commitcd430165d706c6a747f81e663f756e60a4a0377f (patch)
tree88915ae0fe216462d071760a005489e9838fff77 /modules/poll/poll.module
parent6839ce965fb7ac37bf735a0b169009cca7529429 (diff)
downloadbrdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.gz
brdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.bz2
#73884 by RobRoy, various code cleanup.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 5d7068109..6ee82c457 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -570,6 +570,8 @@ function poll_update($node) {
db_query('DELETE FROM {poll_choices} WHERE nid = %d', $node->nid);
db_query('DELETE FROM {poll_votes} WHERE nid = %d', $node->nid);
+
+ $i = 0;
foreach ($node->choice as $choice) {
$chvotes = (int)$choice['chvotes'];
$chtext = $choice['chtext'];