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