Browse Source

Fix a bug where the upgrade would duplicate groups assigned to items in the menu.

Mark Crane 13 years ago
parent
commit
1fde3cf768
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/menu/app_defaults.php

+ 1 - 1
core/menu/app_defaults.php

@@ -85,7 +85,7 @@
 			//get the menu_uuid
 			//get the menu_uuid
 				$menu_uuid = $field['menu_uuid'];
 				$menu_uuid = $field['menu_uuid'];
 			//check each menu to see if there are items in the menu assigned to it
 			//check each menu to see if there are items in the menu assigned to it
-				$sql .= "select count(*) as count from v_menu_item_groups ";
+				$sql = "select count(*) as count from v_menu_item_groups ";
 				$sql .= "where menu_uuid = '$menu_uuid' ";
 				$sql .= "where menu_uuid = '$menu_uuid' ";
 				$prep_statement = $db->prepare($sql);
 				$prep_statement = $db->prepare($sql);
 				$prep_statement->execute();
 				$prep_statement->execute();