From ccd3dd0ce2ef8559d3ec7e10f07291200efd93d6 Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 26 Feb 2007 14:02:21 +0000 Subject: [PATCH] Merge from MOODLE_18_STABLE: Fixing notices, I should 've done grep "BLOCK_TYPE_NUKE" earlier. --- blocks/moodleblock.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } -- 2.39.5