Prevent SQL error when forcing download. MDL-15921 ; merged from 19_STABLE

This commit is contained in:
stronk7 2008-08-26 23:02:58 +00:00
parent 8f3f6cc3fa
commit 7facd18e7d

View file

@ -135,6 +135,7 @@ class resource_file extends resource_base {
$alloptions = $RESOURCE_WINDOW_OPTIONS;
if ($resource->forcedownload) {
$resource->popup = '';
$resource->options = 'forcedownload';
} else if ($resource->windowpopup) {