diff --git a/Service/ExportService.php b/Service/ExportService.php index fba2949f..6997a7e8 100644 --- a/Service/ExportService.php +++ b/Service/ExportService.php @@ -99,7 +99,7 @@ public function exportIndex( */ protected function getFilePath($filename): string { - if ($filename{0} == '/' || strstr($filename, ':') !== false) { + if ($filename[0] == '/' || strstr($filename, ':') !== false) { return $filename; } diff --git a/Service/ImportService.php b/Service/ImportService.php index 83cd73ba..3fa43572 100644 --- a/Service/ImportService.php +++ b/Service/ImportService.php @@ -65,7 +65,7 @@ public function importIndex( */ protected function getFilePath($filename) { - if ($filename{0} == '/' || strstr($filename, ':') !== false) { + if ($filename[0] == '/' || strstr($filename, ':') !== false) { return $filename; }