Skip to content

Commit

Permalink
Merge pull request #41 from lorenzulrich/patch-1
Browse files Browse the repository at this point in the history
TASK: Replace curly braces syntax for string offset access
  • Loading branch information
daniellienert authored Dec 16, 2020
2 parents 0ae0506 + 2e4e1e4 commit 308730b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Eel/IndexingHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function buildAllPathPrefixes($path)

$currentPath = '';
$pathPrefixes = [];
if ($path{0} === '/') {
if (strpos($path, '/') === 0) {
$currentPath = '/';
$pathPrefixes[] = $currentPath;
}
Expand Down

0 comments on commit 308730b

Please sign in to comment.