summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--context_ui/context_ui.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/context_ui/context_ui.module b/context_ui/context_ui.module
index e1273fc..8002dfd 100644
--- a/context_ui/context_ui.module
+++ b/context_ui/context_ui.module
@@ -1423,7 +1423,7 @@ function context_ui_menu_navigation_links($menu_name, $level = 0) {
// Retrieve the first active menu path found.
foreach (context_ui_active_contexts() as $context) {
- if (isset($context->menu) && !empty($context->menu)) {
+ if (isset($context->menu) && !empty($context->menu) && menu_get_item($context->menu)) {
menu_set_active_item($context->menu);
break;
}