Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
#320: Fix menu for com:users in the backend
Browse files Browse the repository at this point in the history
Make sure $createUser is true before calling $menu->getParent() to avoid setting the current menu to NULL.
  • Loading branch information
allanpilarca committed Jun 6, 2017
1 parent 781341e commit b2a561e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/administrator/modules/mod_menu/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@
if($enabled)
{
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_COM_USERS_USER_MANAGER'), 'index.php?option=com_users&view=users', 'class:user'), $createUser);
$menu->getParent();

if ($createUser) {
$menu->getParent();
}

if ($createGrp)
{
Expand Down

0 comments on commit b2a561e

Please sign in to comment.