From: skodak Date: Thu, 1 Jun 2006 19:13:52 +0000 (+0000) Subject: fixed - unable to disable blocks; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f9ba24ef260e2009ffdd84673d4eec34c5215e6;p=moodle.git fixed - unable to disable blocks; merged from MOODLE_16_STABLE --- 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)) {