From d880f8f55927a6da7ca3fce60253c8416fd19b5d Mon Sep 17 00:00:00 2001
From: Kjartan Mannes <kjartan@2.no-reply.drupal.org>
Date: Wed, 12 Jun 2002 16:02:26 +0000
Subject: [PATCH] - added missing <ul> tags.

---
 modules/poll.module      | 2 ++
 modules/poll/poll.module | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/modules/poll.module b/modules/poll.module
index 0249d8bae105..6a47fe451119 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -217,9 +217,11 @@ function poll_page() {
 
   $theme->header();
   $result = db_query("SELECT n.nid, n.title, p.active, SUM(c.chvotes) AS votes FROM node n LEFT JOIN poll p ON n.nid=p.nid LEFT JOIN poll_choices c ON n.nid=c.nid WHERE type='poll' AND status='1' AND moderate='0' GROUP BY n.nid, n.title, p.active ORDER BY n.created DESC");
+  $output = "<ul>";
   while ($node = db_fetch_object($result)) {
     $output .= "<li>". l($node->title, array("id" => $node->nid)) ." - ". format_plural($node->votes, "vote", "votes") ." - ". ($node->active ? t("open") : t("closed")) ."</li>";
   }
+  $output .= "</ul>";
   $theme->box(t("Polls"), $output);
   $theme->footer();
 }
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 0249d8bae105..6a47fe451119 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -217,9 +217,11 @@ function poll_page() {
 
   $theme->header();
   $result = db_query("SELECT n.nid, n.title, p.active, SUM(c.chvotes) AS votes FROM node n LEFT JOIN poll p ON n.nid=p.nid LEFT JOIN poll_choices c ON n.nid=c.nid WHERE type='poll' AND status='1' AND moderate='0' GROUP BY n.nid, n.title, p.active ORDER BY n.created DESC");
+  $output = "<ul>";
   while ($node = db_fetch_object($result)) {
     $output .= "<li>". l($node->title, array("id" => $node->nid)) ." - ". format_plural($node->votes, "vote", "votes") ." - ". ($node->active ? t("open") : t("closed")) ."</li>";
   }
+  $output .= "</ul>";
   $theme->box(t("Polls"), $output);
   $theme->footer();
 }
-- 
GitLab