Skip to content

Commit a681455

Browse files
authored
bugfix(zend) Deprecated: Array and string offset access syntax with curly braces is deprecated (#1344)
1 parent 475c955 commit a681455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Zend/View/Helper/Navigation/Sitemap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ public function url(Zend_Navigation_Page $page)
253253
{
254254
$href = $page->getHref();
255255

256-
if (!isset($href{0})) {
256+
if (!isset($href[0])) {
257257
// no href
258258
return '';
259-
} elseif ($href{0} == '/') {
259+
} elseif ($href[0] == '/') {
260260
// href is relative to root; use serverUrl helper
261261
$url = $this->getServerUrl() . $href;
262262
} elseif (preg_match('/^[a-z]+:/im', (string) $href)) {

0 commit comments

Comments
 (0)