'Add a block' block should not be displayed if there is no block to add.
In blocklib.php::block_add_block_ui() we should return null if $missingblocks is empty.
if (empty($missingblocks)) {
|
$bc->content = get_string('noblockstoaddhere'); //remove the string from the lang file
|
return $bc;
|
}
|
=>
if (empty($missingblocks)) {
|
return null;
|
}
|