Index: block.module =================================================================== --- block.module (revision 294) +++ block.module (revision 295) @@ -474,8 +474,8 @@ 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(); + if(!isset($blocks[$block['region']])) { + $blocks[$block['region']] = array(); } // Use the user's block visibility setting, if necessary if ($block['custom'] != 0) { @@ -514,7 +514,7 @@ } } if (isset($block['content']) && $block['content']) { - $blocks[$region]["$block[module]_$block[delta]"] = (object) $block; + $blocks[$block['region']]["$block[module]_$block[delta]"] = (object) $block; } } }