From 5d684e108eae96336f4e37b7648eadbf3bacf5a6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 14 Oct 2003 18:08:33 +0000 Subject: - Bugfix: stopped the menu system from generating empty lists (). Patch by Nick (CodeMonkeyX). - Bugfix: anonymous users could not change comment settings. Patch by Bart. - Bugfix: the comment control form always showed "order by date - newest first", no matter what order you selected. Patch by Bart. - Small usability improvement: only display comment controls when there are comments to show. Patch by Bart. --- includes/menu.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/menu.inc b/includes/menu.inc index ca2088fef..7cb17459a 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -135,7 +135,8 @@ function menu_tree($parent = "") { } if ($_list[$parent]["children"]) { - $output = "\n\n"; + + if ($output != '') { + $output = "\n\n"; + } } return $output; -- cgit v1.2.3