summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-10-09 17:15:55 +0000
committerDries Buytaert <dries@buytaert.net>2004-10-09 17:15:55 +0000
commit2aae0af5d72037f25ff882cca7fa33c465473117 (patch)
tree2bdfe8b578729797ed78cb10c7f26783432d2a16
parentec9b0b06a8ae6d5405587febddbf5d90c97d6fb4 (diff)
downloadbrdo-2aae0af5d72037f25ff882cca7fa33c465473117.tar.gz
brdo-2aae0af5d72037f25ff882cca7fa33c465473117.tar.bz2
- Patch #11426: the forum module generated an empty table for forums with no child forums.
-rw-r--r--modules/forum.module4
-rw-r--r--modules/forum/forum.module4
2 files changed, 6 insertions, 2 deletions
diff --git a/modules/forum.module b/modules/forum.module
index 5052ec775..ffc099fff 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -613,9 +613,11 @@ function theme_forum_list($forums, $parents, $tid) {
array('data' => _forum_format($forum->last_post), 'class' => 'last-reply'));
}
}
+
+ return theme('table', $header, $rows);
+
}
- return theme('table', $header, $rows);
}
/**
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 5052ec775..ffc099fff 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -613,9 +613,11 @@ function theme_forum_list($forums, $parents, $tid) {
array('data' => _forum_format($forum->last_post), 'class' => 'last-reply'));
}
}
+
+ return theme('table', $header, $rows);
+
}
- return theme('table', $header, $rows);
}
/**