summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-10-12 01:48:44 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-10-12 01:48:44 -0400
commit69b1ff814b49cb6bb8c0108df77e3ef18852ec81 (patch)
tree486876ae7402a49f370b20360431e7837c74e577 /modules
parent8ee4f5accb4571020fdc86f952388810301a8d9c (diff)
downloadbrdo-69b1ff814b49cb6bb8c0108df77e3ef18852ec81.tar.gz
brdo-69b1ff814b49cb6bb8c0108df77e3ef18852ec81.tar.bz2
Issue #1719280 by GuyPaddock, Robin Millette: Undefined index warning in user_menu_link_alter() when manually adding a "user" path as a shortcut
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 21a41d56f..6a742c8e6 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1911,13 +1911,13 @@ function user_menu_link_alter(&$link) {
// for authenticated users. Authenticated users should see "My account", but
// anonymous users should not see it at all. Therefore, invoke
// user_translated_menu_link_alter() to conditionally hide the link.
- if ($link['link_path'] == 'user' && $link['module'] == 'system') {
+ if ($link['link_path'] == 'user' && isset($link['module']) && $link['module'] == 'system') {
$link['options']['alter'] = TRUE;
}
// Force the Logout link to appear on the top-level of 'user-menu' menu by
// default (i.e., unless it has been customized).
- if ($link['link_path'] == 'user/logout' && $link['module'] == 'system' && empty($link['customized'])) {
+ if ($link['link_path'] == 'user/logout' && isset($link['module']) && $link['module'] == 'system' && empty($link['customized'])) {
$link['plid'] = 0;
}
}