- Made sure $content is initialized. Patch by James.

4.1.x
Dries Buytaert 2002-11-09 19:50:44 +00:00
parent a6a47a3257
commit c2f5ce820f
2 changed files with 4 additions and 0 deletions

View File

@ -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", ""));

View File

@ -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", ""));