diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-06-09 18:12:50 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-06-09 18:12:50 +0000 |
commit | 0e2fc70e3da74596b30b83832ae8dd0260154674 (patch) | |
tree | 41876fa83b2e52fa06c3fd227a2b1c4c62582208 | |
parent | 2c0866eca6749bdab08387ed93cc37d75d53ccc4 (diff) | |
download | brdo-0e2fc70e3da74596b30b83832ae8dd0260154674.tar.gz brdo-0e2fc70e3da74596b30b83832ae8dd0260154674.tar.bz2 |
no message
-rw-r--r-- | modules/poll.module | 2 | ||||
-rw-r--r-- | modules/poll/poll.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll.module b/modules/poll.module index 2918e8679..2597a2498 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -180,7 +180,7 @@ function poll_form($edit = array(), $nocheck = 0) { if ($admin && !is_array($edit[choices])) $edit = poll_get_choices_array($edit); /* Mini-form for number of choiceboxes */ - $choices = $edit[choices] ? $edit[choices] : max(5, count($edit[choice])); + $choices = $edit[choices] ? $edit[choices] : max(2, count($edit[choice])); for ($c = 2; $c <= 20; $c++) $opts[$c]=$c; $form .= form_select(t("Number of choices"), "choices", $choices, $opts, t("This box only specifies the number of boxes in this form, it doesn't have to equal the actual amount of choices in the poll.")); $form .= form_submit(t("Preview")) . "<br><br><br>"; diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 2918e8679..2597a2498 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -180,7 +180,7 @@ function poll_form($edit = array(), $nocheck = 0) { if ($admin && !is_array($edit[choices])) $edit = poll_get_choices_array($edit); /* Mini-form for number of choiceboxes */ - $choices = $edit[choices] ? $edit[choices] : max(5, count($edit[choice])); + $choices = $edit[choices] ? $edit[choices] : max(2, count($edit[choice])); for ($c = 2; $c <= 20; $c++) $opts[$c]=$c; $form .= form_select(t("Number of choices"), "choices", $choices, $opts, t("This box only specifies the number of boxes in this form, it doesn't have to equal the actual amount of choices in the poll.")); $form .= form_submit(t("Preview")) . "<br><br><br>"; |