mirror of
https://github.com/moodle/moodle.git
synced 2025-03-20 07:30:01 +01:00
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:
parent
ef45f25e7d
commit
ab0e4dd42f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user