summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-07-24 12:30:42 +0000
committerDries Buytaert2003-07-24 12:30:42 +0000
commit1ef4441eaf333362f8f012ce2611c550f9498b91 (patch)
treef5c62ddab92cb6a872e14f1e62572b08c113725c
parent96c5bfe4e1f31d1fd00a10cc1892f3e1d0730ba9 (diff)
- Bugfix: made deleting polls work. Patch by Marco.
-rw-r--r--modules/poll.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/poll.module b/modules/poll.module
index 0313b62..a2e8027 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -369,7 +369,7 @@ function poll_update($node) {
db_query("UPDATE poll SET runtime = %d, active = %d WHERE nid = %d", $node->runtime, $node->active, $node->nid);
db_query("DELETE FROM poll_choices WHERE nid = %d", $node->nid);
- for ($i = 0; $i < $node->choices; $i++) {
+ for ($i = 0; $i < count($node->choice); $i++) {
$choice->chtext = $node->choice[$i];
$choice->chvotes = (int)$node->chvotes[$i];
$choice->chorder = $i;