From: tjhunt Date: Thu, 23 Oct 2008 09:05:37 +0000 (+0000) Subject: file/link resource: Fix notice. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8e2d826b1512803291eff1f3dc1a85ca93a7dde8;p=moodle.git file/link resource: Fix notice. --- diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index 99abd2e733..c0be52f68a 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -134,7 +134,7 @@ class resource_file extends resource_base { global $RESOURCE_WINDOW_OPTIONS; $alloptions = $RESOURCE_WINDOW_OPTIONS; - if ($resource->forcedownload) { + if (!empty($resource->forcedownload)) { $resource->popup = ''; $resource->options = 'forcedownload';