summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/forum.module6
-rw-r--r--modules/forum/forum.module6
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/forum.module b/modules/forum.module
index 8d7512e2d..e086cf991 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -235,9 +235,11 @@ function forum_overview() {
}
}
-
- return theme('table', $header, $rows);
}
+ else {
+ $rows[] = array(array('data' => '<em>' . t('There are no existing containers or forums. You may add some on the <a href="%container">add container</a> or <a href="%forum">add forum</a> pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '</em>', 'colspan' => 2));
+ }
+ return theme('table', $header, $rows);
}
/**
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 8d7512e2d..e086cf991 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -235,9 +235,11 @@ function forum_overview() {
}
}
-
- return theme('table', $header, $rows);
}
+ else {
+ $rows[] = array(array('data' => '<em>' . t('There are no existing containers or forums. You may add some on the <a href="%container">add container</a> or <a href="%forum">add forum</a> pages.', array('%container' => url('admin/forum/add/container'), '%forum' => url('admin/forum/add/forum'))) . '</em>', 'colspan' => 2));
+ }
+ return theme('table', $header, $rows);
}
/**