HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

RemoveGroup() method of Gdn_MenuModule class is not working!!

edited September 2009 in Feedback

I tried to remove one of the group of menumodule using RemoveGroup() method.

The RemoveGroup() implementation is as follows:

public function RemoveGroup($Group) { if (array_key_exists($Group, $this->Groups)) unset($this->Groups[$Group]); }

Here we are accessing Groups property of class Gdn_MenuModule, which does not exists, thus resulting an error.

So in order make it work we should use $this->Items instead of $this->Groups.


Sign In or Register to comment.