Index: database/updates.inc
===================================================================
RCS file: /cvs/drupal/drupal/database/updates.inc,v
retrieving revision 1.182
diff -u -p -r1.182 updates.inc
--- database/updates.inc	10 Jan 2006 19:33:57 -0000	1.182
+++ database/updates.inc	12 Jan 2006 22:39:16 -0000
@@ -980,8 +980,10 @@ function system_update_151() {
       db_query("DELETE FROM {menu} WHERE mid={$menus[$loop]['pid']}");
     }
 
-    // set menu_primary_menu variable appropriately
-    if (!$ts[$menus[$loop]['toggle_var']] || $num_inserted == 0) {
+    // Set menu_primary_menu and menu_primary_menu variables if links were imported.
+    // If the user had links but the toggle display was off, they will need to
+    // disable the new links manually in admins/settings/menu.
+    if ($num_inserted == 0) {
       variable_set($menus[$loop]['menu_var'], 0);
     }
     else {
