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!!
Hi,
I tried to remove one of the group of menumodule using RemoveGroup() method.
The RemoveGroup() implementation is as follows:
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.
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.
Tagged:
0
Comments