summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge PETCULESCU <george.petculescu@zitec.com>2016-10-31 13:08:36 +0100
committerGeorge PETCULESCU <george.petculescu@zitec.com>2016-10-31 13:08:36 +0100
commitb907c8ad41dfb4a9394b3a73182f0abf7fe14f94 (patch)
treeaa0e9782fd0665fc23d095b7bdb0800c5ba2e1df
parentc953c128649e06bb1a3594e56459cf14bdb6e048 (diff)
fixed coding style (2)
-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);