summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/helpers/download_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index 32ee773bb..9158272ef 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -70,7 +70,7 @@ if ( ! function_exists('force_download'))
elseif ($data === NULL)
{
// Is $filename an array as ['local source path' => 'destination filename']?
- if(is_array($filename) && count($filename))
+ if(is_array($filename) && count($filename) == 1)
{
$filepath = key($filename);
$filename = current($filename);