summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorGeorge PETCULESCU <george.petculescu@zitec.com>2016-10-31 13:06:48 +0100
committerGeorge PETCULESCU <george.petculescu@zitec.com>2016-10-31 13:06:48 +0100
commitc953c128649e06bb1a3594e56459cf14bdb6e048 (patch)
tree5a6cb45fb24dbbddf5369888700e79b2ac3b9d7a /system/helpers
parent214a537e4df19f3885943604c1b8a49c3f64993d (diff)
fixed coding style
Diffstat (limited to 'system/helpers')
-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 a1d149f91..32ee773bb 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) === 1)
+ if(is_array($filename) && count($filename))
{
$filepath = key($filename);
$filename = current($filename);