--- /Users/chellman/Downloads/context/context.core.inc	2011-01-13 13:40:30.000000000 -0800
+++ /Users/chellman/Sites/bigduck/d6/sites/all/modules/context/context.core.inc	2011-01-19 21:47:50.000000000 -0800
@@ -1,5 +1,5 @@
 <?php
-// $Id: context.core.inc,v 1.1.2.3.2.20.2.30 2011/01/13 21:40:30 darthsteven Exp $
+// $Id: context.core.inc,v 1.1.2.3.2.20.2.29 2010/08/05 08:03:29 yhahn Exp $
 
 /**
  * Implementation of hook_help().
@@ -14,15 +14,11 @@ function context_help($path, $arg) {
 
 /**
  * Implementation of hook_menu_alter().
- * If core block handling is disabled, remove menu items.
+ * If core block handling is disabled, remove the main menu item.
  */
 function context_menu_alter(&$items) {
   if (variable_get('context_reaction_block_disable_core', FALSE)) {
-    foreach ($items as $path => $item) {
-      if (strpos($path, 'admin/build/block') === 0) {
-        unset($items[$path]);
-      }
-    }
+    unset($items['admin/build/block']);
   }
 }
 
