Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Remove deprecated string offset operator.
Browse files Browse the repository at this point in the history
Use with php7.4 caused an Error: Array and string offset access syntax with curly braces is deprecated

This will make this lib useable with php7.4 .
  • Loading branch information
Tobias Lang committed Mar 9, 2020
1 parent 7f4162b commit 308ba2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/dataBackend/file/FileDataBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function update()
$uriPicker = new FallbackURIPicker();
$path = $uriPicker->pickURI($content);

if (strlen($path) > 0 && $path{0} != "/") {
if (strlen($path) > 0 && $path[0] != "/") {
$path = sprintf("/%s/%s", dirname(self::DOWNLOAD_URI), $path);

}
Expand Down

0 comments on commit 308ba2d

Please sign in to comment.