From f3a7eb31f3e020605653f4f863fdbffef0410e33 Mon Sep 17 00:00:00 2001 From: ycastillo Date: Wed, 23 Apr 2014 02:44:40 -0400 Subject: [PATCH] Fixing bug when downloading a work -refs #7027 --- main/work/work.lib.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/main/work/work.lib.php b/main/work/work.lib.php index da6c4c2889..7d530b3f9d 100644 --- a/main/work/work.lib.php +++ b/main/work/work.lib.php @@ -4114,11 +4114,15 @@ function getFile($id, $course_info, $download = true) { $file = getFileContents($id, $course_info); if (!empty($file) && is_array($file)) { - DocumentManager::file_send_for_download( - $file['path'], - $download, - $file['title'] - ); + return DocumentManager::file_send_for_download($file['path'], $download, $file['title']); + } + + return false; + + } + +No commit comments for this range + } return false; }