summaryrefslogtreecommitdiffstats
path: root/system/helpers/download_helper.php
diff options
context:
space:
mode:
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;