]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8460 Notice in resource/type/text class
authorskodak <skodak>
Tue, 13 Feb 2007 19:50:46 +0000 (19:50 +0000)
committerskodak <skodak>
Tue, 13 Feb 2007 19:50:46 +0000 (19:50 +0000)
mod/resource/type/text/resource.class.php

index f5e1aca636f18fca020ca1988cf39c3e5ed4c101..102e1543d07d8e0c94670d40eec33042adbe8c1d 100644 (file)
@@ -33,10 +33,10 @@ function _postprocess(&$resource) {
         $resource->options = '';
 
     } else {
-        if ($resource->blockdisplay) {
-            $resource->options = 'showblocks';
-        } else {
+        if (empty($resource->blockdisplay)) {
             $resource->options = '';
+        } else {
+            $resource->options = 'showblocks';
         }
         unset($resource->blockdisplay);
         $resource->popup = '';