mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
file/link resource: Fix notice.
This commit is contained in:
parent
4f8190a59f
commit
8e2d826b15
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user