summaryrefslogtreecommitdiff
path: root/modules/poll.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-06-12 16:02:26 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-06-12 16:02:26 +0000
commitd880f8f55927a6da7ca3fce60253c8416fd19b5d (patch)
tree508023396e8d8a53a7c6358512b0d29af04e772a /modules/poll.module
parent00728553408e0ba35ed245d36653c776e687cd6c (diff)
downloadbrdo-d880f8f55927a6da7ca3fce60253c8416fd19b5d.tar.gz
brdo-d880f8f55927a6da7ca3fce60253c8416fd19b5d.tar.bz2
- added missing <ul> tags.
Diffstat (limited to 'modules/poll.module')
-rw-r--r--modules/poll.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/poll.module b/modules/poll.module
index 0249d8bae..6a47fe451 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();
}