From 68b5cad3a054ab313b8a894f4c1d0d06d269d9ea Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 18 Aug 2012 08:52:40 +0000 Subject: [PATCH] Fix a bug where the upgrade would duplicate groups assigned to items in the menu. --- core/menu/app_defaults.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/menu/app_defaults.php b/core/menu/app_defaults.php index 42b164c110..de3a70af48 100644 --- a/core/menu/app_defaults.php +++ b/core/menu/app_defaults.php @@ -85,7 +85,7 @@ //get the menu_uuid $menu_uuid = $field['menu_uuid']; //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' "; $prep_statement = $db->prepare($sql); $prep_statement->execute();