Commit 82a51e7b authored by Steven Wittens's avatar Steven Wittens
Browse files

Fixed "array" being displayed at top of form.

Dries: what was that 'bad markup' bug you mentioned?
parent 6f2ad759
......@@ -175,10 +175,6 @@ function poll_form($edit = array(), $nocheck = 0) {
$admin = ($edit[nid] && user_access("administer nodes")) ? 1 : 0;
if ($edit[title]) {
$form .= poll_view(new Poll(node_preview($edit)));
}
if ($admin && !is_array($edit[choices])) $edit = poll_get_choices_array($edit);
/* Mini-form for number of choiceboxes */
......
......@@ -175,10 +175,6 @@ function poll_form($edit = array(), $nocheck = 0) {
$admin = ($edit[nid] && user_access("administer nodes")) ? 1 : 0;
if ($edit[title]) {
$form .= poll_view(new Poll(node_preview($edit)));
}
if ($admin && !is_array($edit[choices])) $edit = poll_get_choices_array($edit);
/* Mini-form for number of choiceboxes */
......
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