summaryrefslogtreecommitdiff
path: root/modules/section.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-24 16:48:54 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-24 16:48:54 +0000
commita9222fe22279a087db5664585ae4381bd0e1f876 (patch)
tree2f25c89f0184842134adaaa265c45b467ed67c57 /modules/section.module
parentfe095f5a24baef737f425591770819ac6260778f (diff)
downloadbrdo-a9222fe22279a087db5664585ae4381bd0e1f876.tar.gz
brdo-a9222fe22279a087db5664585ae4381bd0e1f876.tar.bz2
- nodified section module
(As section are story related and not per se node related, I'm wondering whether we should integrate the section stuff in the story module at some point?)
Diffstat (limited to 'modules/section.module')
-rw-r--r--modules/section.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/section.module b/modules/section.module
index fb84d7a96..052004b00 100644
--- a/modules/section.module
+++ b/modules/section.module
@@ -18,7 +18,7 @@ function section_help() {
}
function section_block() {
- $result = db_query("SELECT se.name, COUNT(st.id) AS stories FROM sections se LEFT JOIN stories st ON se.name = st.section GROUP BY se.name");
+ $result = db_query("SELECT se.name, COUNT(st.id) AS stories FROM sections se LEFT JOIN story st ON se.name = st.section GROUP BY se.name");
while ($_section = db_fetch_object($result)) {
$content .= "<LI><A HREF=\"?section=". urlencode($_section->name) ."\">$_section->name</A> (". check_output($_section->stories, 0) .")</LI>\n";
}