Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 1823ceb

Browse files
committed
Merge pull request #192 from webimpress/hotfix/curly-braces
Fix: replace curly offset access brace with square brackets
2 parents cdad361 + 26679dd commit 1823ceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Helper/Navigation/Sitemap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ public function url(AbstractPage $page)
267267
{
268268
$href = $page->getHref();
269269

270-
if (! isset($href{0})) {
270+
if (! isset($href[0])) {
271271
// no href
272272
return '';
273-
} elseif ($href{0} == '/') {
273+
} elseif ($href[0] == '/') {
274274
// href is relative to root; use serverUrl helper
275275
$url = $this->getServerUrl() . $href;
276276
} elseif (preg_match('/^[a-z]+:/im', (string) $href)) {

0 commit comments

Comments
 (0)