From 5c090ae98148affa1b0ee3dd30d9cfa5c14d9365 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 14 Dec 2002 23:08:17 +0000 Subject: [PATCH] Fixed a bug where it could potentially have displayed system level roots. --- lib/WebGUI/Macro/rootmenuHorizontal.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Macro/rootmenuHorizontal.pm b/lib/WebGUI/Macro/rootmenuHorizontal.pm index 97a353ca5..9f442ac2b 100644 --- a/lib/WebGUI/Macro/rootmenuHorizontal.pm +++ b/lib/WebGUI/Macro/rootmenuHorizontal.pm @@ -28,7 +28,8 @@ sub _replacement { } $temp = ''; $first = 1; - $sth = WebGUI::SQL->read("select menuTitle,urlizedTitle,pageId from page where parentId=0 and (pageId=1 or pageId>25) order by sequenceNumber"); + $sth = WebGUI::SQL->read("select menuTitle,urlizedTitle,pageId from page where parentId=0 + and (pageId=1 or pageId>999) order by sequenceNumber"); while (@data = $sth->array) { if (WebGUI::Privilege::canViewPage($data[2])) { if ($first) {