file/link resource: Fix notice.

This commit is contained in:
tjhunt 2008-10-23 09:05:37 +00:00
parent 4f8190a59f
commit 8e2d826b15

View File

@ -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';