Skip to content

Commit

Permalink
Prevent SQL error when forcing download. MDL-15921
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 26, 2008
1 parent 5877f52 commit a6a1b60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/resource/type/file/resource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function _postprocess(&$resource) {
$alloptions = $RESOURCE_WINDOW_OPTIONS;

if ($resource->forcedownload) {
$resource->popup = '';
$resource->options = 'forcedownload';

} else if ($resource->windowpopup) {
Expand Down

0 comments on commit a6a1b60

Please sign in to comment.