Permalink
Browse files

blocks MDL-23871 blocks_have_content ignores global block visibility …

…option
  • Loading branch information...
1 parent 8f17261 commit 2780a3f5fc1532f94e938b8b8181f0d5a50367aa @sammarshallou sammarshallou committed Aug 19, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/blocklib.php
View
@@ -235,6 +235,9 @@ function blocks_have_content(&$pageblocks, $position) {
if(!$record = blocks_get_record($instance->blockid)) {
continue;
}
+ if (empty($record->visible)) {
+ continue;
+ }
if(!$obj = block_instance($record->name, $instance)) {
continue;
}

0 comments on commit 2780a3f

Please sign in to comment.