summaryrefslogtreecommitdiffstats
path: root/system/helpers/download_helper.php
diff options
context:
space:
mode:
authorGeorge Petculescu <gxgpet@gmail.com>2016-11-01 07:16:47 +0100
committerGeorge Petculescu <gxgpet@gmail.com>2016-11-01 07:16:47 +0100
commit627b050e89ea3e9794e7ad03c28aeb770417357a (patch)
treee71c5643d799a2d32fbf6154062185b17814959c /system/helpers/download_helper.php
parent5d1c2123fdc575d70e9db38ce30b34d4b291469c (diff)
if download helper receives a numeric array now it won't work
Diffstat (limited to 'system/helpers/download_helper.php')
-rw-r--r--system/helpers/download_helper.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index 9158272ef..4bab69005 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -75,6 +75,11 @@ if ( ! function_exists('force_download'))
$filepath = key($filename);
$filename = current($filename);
+ if(is_int($filepath))
+ {
+ return;
+ }
+
if ( ! @is_file($filepath) OR ($filesize = @filesize($filepath)) === FALSE)
{
return;