diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 3963fb2770f..a5d11697155 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -1,8 +1,7 @@ get_content_type(), array(BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT, BLOCK_TYPE_NUKE))) { + if (!in_array($this->get_content_type(), array(BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT))) { $errors[] = 'invalid_content_type'; $correct = false; }