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

src: phpcs sure is picky today

parent acc9db9e
......@@ -286,10 +286,8 @@ class MenuItem
foreach ($this->children as $nodeId => $node) {
$node->toggleSelected($url);
if ($node->getUrl() != "") {
if (
strlen($url) >= strlen($node->getUrl()) &&
$node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))
) {
if (strlen($url) >= strlen($node->getUrl()) &&
$node->getUrl() == substr($url, strlen($url)-strlen($node->getUrl()))) {
$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