summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2019-12-06 15:51:33 +0100
committerFlorian Pritz <bluewind@xinu.at>2019-12-06 16:06:34 +0100
commit36e87973ad3690ded133f98751eaeeac4e57aad9 (patch)
treebee93ccb828fee9a0dd035c3b014e88e1f3ed051
parent642286d3eae62d4932d2c3bf6113b32cdc1917b0 (diff)
Fix deprecated array access syntax with {}
This leads to a deprecation warning as of php 7.4. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--NEWS1
-rw-r--r--application/libraries/Ddownload/drivers/Ddownload_php.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7e3b1b269..64de298a3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
This file lists major, incompatible or otherwise important changes, you should look at it after every update.
NEXT
+ - PHP 7.4 compatibility fixes
3.4.1 2019-09-27
- Update CodeIgniter to 3.1.11,
diff --git a/application/libraries/Ddownload/drivers/Ddownload_php.php b/application/libraries/Ddownload/drivers/Ddownload_php.php
index 98af458c1..90c002b58 100644
--- a/application/libraries/Ddownload/drivers/Ddownload_php.php
+++ b/application/libraries/Ddownload/drivers/Ddownload_php.php
@@ -54,7 +54,7 @@ class Ddownload_php extends Ddownload_Driver {
// If the range starts with an '-' we start from the beginning
// If not, we forward the file pointer
// And make sure to get the end byte if spesified
- if ($range{0} == '-')
+ if ($range[0] == '-')
{
// The n-number of the last bytes is requested
$c_start = $size - substr($range, 1);