From 7f9ba24ef260e2009ffdd84673d4eec34c5215e6 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 1 Jun 2006 19:13:52 +0000 Subject: [PATCH] fixed - unable to disable blocks; merged from MOODLE_16_STABLE --- mod/resource/type/html/resource.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod/resource/type/html/resource.class.php b/mod/resource/type/html/resource.class.php index 35ce2bb227..cc4b441286 100644 --- a/mod/resource/type/html/resource.class.php +++ b/mod/resource/type/html/resource.class.php @@ -32,6 +32,8 @@ function add_instance($resource) { if (isset($resource->blockdisplay)) { $resource->options = 'showblocks'; + } else { + $resource->options = ''; } if (isset($resource->parametersettingspref)) { @@ -70,6 +72,8 @@ function update_instance($resource) { if (isset($resource->blockdisplay)) { $resource->options = 'showblocks'; + } else { + $resource->options = ''; } if (isset($resource->parametersettingspref)) { -- 2.39.5