diff options
author | George Petculescu <gxgpet@gmail.com> | 2016-10-31 00:42:41 +0100 |
---|---|---|
committer | George Petculescu <gxgpet@gmail.com> | 2016-10-31 00:42:41 +0100 |
commit | 214a537e4df19f3885943604c1b8a49c3f64993d (patch) | |
tree | 5fe9f8770b1012ce26522e4b269434f96aa62b6c /system | |
parent | c867754cbb2260efeaa25ff9c339989807e8c713 (diff) |
single entry restriction if $filename is an array
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/download_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php index 289ea199a..a1d149f91 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)) + if(is_array($filename) && count($filename) === 1) { $filepath = key($filename); $filename = current($filename); |