Browse Source

! undefined index http://www.simplemachines.org/community/index.php?topic=466831.msg3262422#msg3262422

Spuds 13 years ago
parent
commit
c5553d049f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Sources/Subs.php

+ 2 - 1
Sources/Subs.php

@@ -3764,7 +3764,8 @@ function setupMenuContext()
 	if (!empty($needs_action_hook))
 		call_integration_hook('integrate_current_action', array(&$current_action));
 
-	$context['menu_buttons'][$current_action]['active_button'] = true;
+	if (isset($context['menu_buttons'][$current_action]))
+		$context['menu_buttons'][$current_action]['active_button'] = true;
 
 	if (!$user_info['is_guest'] && $context['user']['unread_messages'] > 0 && isset($context['menu_buttons']['pm']))
 	{