summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-11-09 19:50:44 +0000
committerDries Buytaert <dries@buytaert.net>2002-11-09 19:50:44 +0000
commitc2f5ce820f75a3ecdbee70b5345daa05be2b897b (patch)
tree60648bf08dbf866d5abf91fa8830c10ab48a238c /modules
parenta6a47a32572c3b71d0c6cf1a2918c0f9d6f8213b (diff)
downloadbrdo-c2f5ce820f75a3ecdbee70b5345daa05be2b897b.tar.gz
brdo-c2f5ce820f75a3ecdbee70b5345daa05be2b897b.tar.bz2
- Made sure $content is initialized. Patch by James.
Diffstat (limited to 'modules')
-rw-r--r--modules/statistics.module2
-rw-r--r--modules/statistics/statistics.module2
2 files changed, 4 insertions, 0 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index 58fd7140b..5392d7a37 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -693,6 +693,8 @@ function statistics_cron() {
/* Displays the "Top nodes" block */
function statistics_display_topnodes_block() {
+ $content = array();
+
$daytop = variable_get("statistics_block_top_day_num", "");
if ($daytop) {
$content[] = theme_invoke("theme_item_list", statistics_title_list("daycount", $daytop), variable_get("statistics_block_top_day_head", ""));
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 58fd7140b..5392d7a37 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -693,6 +693,8 @@ function statistics_cron() {
/* Displays the "Top nodes" block */
function statistics_display_topnodes_block() {
+ $content = array();
+
$daytop = variable_get("statistics_block_top_day_num", "");
if ($daytop) {
$content[] = theme_invoke("theme_item_list", statistics_title_list("daycount", $daytop), variable_get("statistics_block_top_day_head", ""));