From a610ac67e60b7f716cf82350cc8e051f7b1471d5 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 14 Dec 2002 23:05:58 +0000 Subject: [PATCH] Fixed a bug where tree could potentially display system-level roots. --- lib/WebGUI/Operation/Page.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Operation/Page.pm b/lib/WebGUI/Operation/Page.pm index 4b681b0c9..a390d1363 100644 --- a/lib/WebGUI/Operation/Page.pm +++ b/lib/WebGUI/Operation/Page.pm @@ -133,7 +133,7 @@ sub _traversePageTree { for ($i=1;$i<=$_[1];$i++) { $depth .= $spacer; } - $a = WebGUI::SQL->read("select * from page where (pageId<2 or pageId>25) and parentId='$_[0]' order by sequenceNumber"); + $a = WebGUI::SQL->read("select * from page where (pageId=1 or pageId>999) and parentId='$_[0]' order by sequenceNumber"); while (%page = $a->hash) { if (WebGUI::Privilege::canEditPage($page{pageId})) { $output .= $depth