From 2aae0af5d72037f25ff882cca7fa33c465473117 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sat, 9 Oct 2004 17:15:55 +0000 Subject: [PATCH] - Patch #11426: the forum module generated an empty table for forums with no child forums. --- modules/forum.module | 4 +++- modules/forum/forum.module | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/forum.module b/modules/forum.module index 5052ec7753aa..ffc099fff4d0 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 5052ec7753aa..ffc099fff4d0 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); } /** -- GitLab