summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2017-02-15 19:17:20 +0100
committervlakoff <vlakoff@gmail.com>2017-02-15 19:17:20 +0100
commit0b9d5c35e46eff9e8d19f66047eff88067bdcf4a (patch)
treeca6feda4a3ccb124f385ac5b5d59daa44a605b44
parent7c25e642a1741fcba5a82a17b110332095ea3faa (diff)
Do not fail if the array pointer is after the element
-rw-r--r--system/helpers/download_helper.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index 7500bc827..b2f0edb48 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -77,6 +77,7 @@ if ( ! function_exists('force_download'))
return;
}
+ reset($filename);
$filepath = key($filename);
$filename = current($filename);