diff options
author | Andrey Andreev <narf@devilix.net> | 2017-02-15 19:42:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 19:42:57 +0100 |
commit | f87e4f887268d8fa919bdd764b97592925bbcf23 (patch) | |
tree | ca6feda4a3ccb124f385ac5b5d59daa44a605b44 /system/helpers/download_helper.php | |
parent | 7c25e642a1741fcba5a82a17b110332095ea3faa (diff) | |
parent | 0b9d5c35e46eff9e8d19f66047eff88067bdcf4a (diff) |
Merge pull request #5022 from vlakoff/download_helper
Do not fail if the array pointer is after the element
Diffstat (limited to 'system/helpers/download_helper.php')
-rw-r--r-- | system/helpers/download_helper.php | 1 |
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); |