diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2023-03-21 19:56:21 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2023-03-22 22:21:03 +0100 |
| commit | c6ba8c79609aaf6bd85c2b8765bc1629b5f0db72 (patch) | |
| tree | f3e84db4bc4201e1e5f552a4c03f73238804f327 | |
| parent | e9867d24b944b1c9c71c2c6c214cb80ba628c0b9 (diff) | |
| download | phorkie-c6ba8c79609aaf6bd85c2b8765bc1629b5f0db72.tar.gz phorkie-c6ba8c79609aaf6bd85c2b8765bc1629b5f0db72.zip | |
Fix curly brace when accessing character inside string
| -rw-r--r-- | src/phorkie/Repository.php | 2 | ||||
| -rw-r--r-- | src/phorkie/Repository/Remote.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php index eae2fb4..fab32a1 100644 --- a/src/phorkie/Repository.php +++ b/src/phorkie/Repository.php @@ -210,7 +210,7 @@ class Repository ->execute(); $files = explode("\n", trim($output)); foreach ($files as &$file) { - if ($file{0} == '"') { + if ($file[0] == '"') { $file = $this->decodeFileName($file); } } diff --git a/src/phorkie/Repository/Remote.php b/src/phorkie/Repository/Remote.php index 3bb153f..e46d3a9 100644 --- a/src/phorkie/Repository/Remote.php +++ b/src/phorkie/Repository/Remote.php @@ -73,7 +73,7 @@ class Repository_Remote public function isLocal() { return isset($this->arConfig['url']) - && $this->arConfig['url']{0} == '/'; + && $this->arConfig['url'][0] == '/'; } /** |
