From 36e87973ad3690ded133f98751eaeeac4e57aad9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 6 Dec 2019 15:51:33 +0100 Subject: Fix deprecated array access syntax with {} This leads to a deprecation warning as of php 7.4. Signed-off-by: Florian Pritz --- application/libraries/Ddownload/drivers/Ddownload_php.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/libraries') 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); -- cgit v1.2.3-24-g4f1b