Explorar o código

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

Spuds %!s(int64=13) %!d(string=hai) anos
pai
achega
c5553d049f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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']))
 	{