Index: block.module =================================================================== --- block.module +++ block.module @@ -474,8 +474,9 @@ if (!count($blocks)) { $result = db_query("SELECT * FROM {blocks} WHERE theme = '%s' AND status = 1 ORDER BY region, weight, module", $theme_key); while ($block = db_fetch_array($result)) { - if(!isset($blocks[$block->region])) { - $blocks[$block->region] = array(); + $block_region = $block['region']; + if(!isset($blocks[$block_region])) { + $blocks[$block_region] = array(); } // Use the user's block visibility setting, if necessary if ($block['custom'] != 0) { @@ -514,7 +515,7 @@ } } if (isset($block['content']) && $block['content']) { - $blocks[$region]["$block[module]_$block[delta]"] = (object) $block; + $blocks[$block_region]["$block[module]_$block[delta]"] = (object) $block; } } }