summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-02-15 19:42:57 +0100
committerGitHub <noreply@github.com>2017-02-15 19:42:57 +0100
commitf87e4f887268d8fa919bdd764b97592925bbcf23 (patch)
treeca6feda4a3ccb124f385ac5b5d59daa44a605b44 /system
parent7c25e642a1741fcba5a82a17b110332095ea3faa (diff)
parent0b9d5c35e46eff9e8d19f66047eff88067bdcf4a (diff)
Merge pull request #5022 from vlakoff/download_helper
Do not fail if the array pointer is after the element
Diffstat (limited to 'system')
-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);