MDL-22019 fixed notices caused by deleting blocks without unisntalling

This commit is contained in:
Petr Skoda
2010-04-02 08:26:59 +00:00
parent 593c913d94
commit 6682cf1813
+3
View File
@@ -45,6 +45,9 @@ if ($hassiteconfig) {
$blockbyname = array();
foreach ($blocks as $block) {
if (!file_exists("$CFG->dirroot/blocks/$block->name")) {
continue;
}
if(($blockobject = block_instance($block->name)) === false) {
// Failed to load
continue;