Commit 227a53ba authored by Franco Fichtner's avatar Franco Fichtner

src: phpcs sure is picky today

parent acc9db9e
...@@ -286,10 +286,8 @@ class MenuItem ...@@ -286,10 +286,8 @@ class MenuItem
foreach ($this->children as $nodeId => $node) { foreach ($this->children as $nodeId => $node) {
$node->toggleSelected($url); $node->toggleSelected($url);
if ($node->getUrl() != "") { if ($node->getUrl() != "") {
if ( if (strlen($url) >= strlen($node->getUrl()) &&
strlen($url) >= strlen($node->getUrl()) && $node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))) {
$node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))
) {
$node->select(); $node->select();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment