From 05caf056b19b01c95187298cee1cdb9f85aadbba Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 21 Oct 2012 08:12:37 +0000 Subject: [PATCH] Fix some tabbing and other white space issues with the menu class. --- includes/classes/menu.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/includes/classes/menu.php b/includes/classes/menu.php index 57e352eee1..0aaba9106f 100644 --- a/includes/classes/menu.php +++ b/includes/classes/menu.php @@ -46,7 +46,6 @@ $sql .= "and (menu_item_protected <> 'true' "; $sql .= "or menu_item_protected is null); "; $db->exec(check_sql($sql)); - } //restore the menu @@ -150,8 +149,8 @@ } } } - } - foreach($apps as $row) { + } + foreach($apps as $row) { foreach ($row['permissions'] as $menu) { //set the variables if ($menu['groups']) { @@ -188,12 +187,10 @@ } } } - } //if there are no groups listed in v_menu_item_groups under menu_uuid then add the default groups - - foreach($apps as $app) { + foreach($apps as $app) { foreach ($app['menu'] as $sub_row) { foreach ($sub_row['groups'] as $group) { $sql = "select count(*) as count from v_menu_item_groups ";