summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-09-25 21:26:20 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-09-25 21:26:20 +0000
commita9d2e1241927522c00aaa38bc3d9f860c2898433 (patch)
tree451d5179bd4dec761407eac38892dec2b574488b /includes
parent858a5cec343e762f4e56eaea6465b4ecc2f13218 (diff)
downloadbrdo-a9d2e1241927522c00aaa38bc3d9f860c2898433.tar.gz
brdo-a9d2e1241927522c00aaa38bc3d9f860c2898433.tar.bz2
- modified theme_block() to ignore blocks that have no content.
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 3da5116c2..1a582cf3d 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -90,7 +90,8 @@ function theme_blocks($region, $theme) {
else $result = db_query("SELECT * FROM blocks WHERE status = 2". (($region == "left" || $region == "right") ? ($region == "left" ? " AND region = 0" : " AND region = 1") : "") ." ORDER BY weight");
while ($block = db_fetch_object($result)) {
$blocks = module_invoke($block->module, "block");
- $theme->box(t($blocks[$block->offset]["subject"]), $blocks[$block->offset]["content"], $region);
+ if ($blocks[$block->offset]["content"])
+ $theme->box(t($blocks[$block->offset]["subject"]), $blocks[$block->offset]["content"], $region);
}
break;
}