summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-23 09:09:23 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-23 09:09:23 +0000
commit943d9c06b0cfd9ccee5d05d3d86e67bbd48de912 (patch)
tree8235e9bb4e05f612b1202248d29c1bff6ca73db7 /modules/system
parentc16bee54ec38e9ae6f322a67af45491db3589c84 (diff)
downloadbrdo-943d9c06b0cfd9ccee5d05d3d86e67bbd48de912.tar.gz
brdo-943d9c06b0cfd9ccee5d05d3d86e67bbd48de912.tar.bz2
- Patch #889882 by dhrosa: page_top() prints an empty DIV when logged out.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/region.tpl.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/system/region.tpl.php b/modules/system/region.tpl.php
index 8d10e78df..f5b8c91d1 100644
--- a/modules/system/region.tpl.php
+++ b/modules/system/region.tpl.php
@@ -27,6 +27,8 @@
* @see template_process()
*/
?>
-<div class="<?php print $classes; ?>">
- <?php print $content; ?>
-</div>
+<?php if($content): ?>
+ <div class="<?php print $classes; ?>">
+ <?php print $content; ?>
+ </div>
+<?php endif; ?>