From: defacer Date: Mon, 26 Feb 2007 14:02:21 +0000 (+0000) Subject: Merge from MOODLE_18_STABLE: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ccd3dd0ce2ef8559d3ec7e10f07291200efd93d6;p=moodle.git Merge from MOODLE_18_STABLE: Fixing notices, I should 've done grep "BLOCK_TYPE_NUKE" earlier. --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 3963fb2770..a5d1169715 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; }