If a block is unknown then ignore it rather than throwing fatal error. In future one might want to have a dummy block that is displayed in this case to alert the user to the fact that some block code is missing.

This commit is contained in:
gustav_delius 2004-11-24 09:16:39 +00:00
parent ef45f25e7d
commit ab0e4dd42f

View File

@ -198,7 +198,10 @@ function blocks_print_group(&$page, &$instances) {
continue;
}
$obj = block_instance($block->name, $instance);
if (!$obj = block_instance($block->name, $instance)) {
// Invalid block
continue;
}
if ($isediting) {
$options = 0;