From 547a686381738fcb93a16894a331d96cdfba6f82 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 26 Aug 2008 13:59:30 +0000 Subject: Closes #304: Thanks for the patch! git-svn-id: https://code.elgg.org/elgg/trunk@2043 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/topbar_tools.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'views/default/navigation/topbar_tools.php') diff --git a/views/default/navigation/topbar_tools.php b/views/default/navigation/topbar_tools.php index 18320d1b7..7a39a0540 100644 --- a/views/default/navigation/topbar_tools.php +++ b/views/default/navigation/topbar_tools.php @@ -17,17 +17,17 @@ //var_export($menu); - if (is_array($menu) && sizeof($menu) > 0) { - $alphamenu = array(); - foreach($menu as $item) { - $alphamenu[$item->name] = $item; - } + if (is_array($menu) && sizeof($menu) > 0) { + $alphamenu = array(); + foreach($menu as $item) { + $alphamenu[$item->name] = $item; + } ksort($alphamenu); ?>