Skip to content

Commit

Permalink
Merge pull request #2 from riconeitzel/patch-1
Browse files Browse the repository at this point in the history
Abkürzung?
  • Loading branch information
Schrank committed Nov 28, 2013
2 parents 3319e89 + e243aa0 commit 3794b9d
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ class Ikonoshirt_ExtendedAccountNavigation_Block_Account_Navigation
*/
public function removeLinkByName($name)
{
foreach ($this->_links as $k => $v) {
if ($v->getName() == $name) {
unset($this->_links[$k]);
}
}
if (array_key_exists($name, $this->_links))
unset($this->_links[$name]);

return $this;
}
}
}

0 comments on commit 3794b9d

Please sign in to comment.