From aad93e46e3e5015cb623b58e4351e759767086b0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 9 Oct 2004 06:23:27 +0000 Subject: [PATCH] fixed SQL quoting for parentId. This fixes SF bug 1041937 --- lib/WebGUI/Operation/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Operation/Root.pm b/lib/WebGUI/Operation/Root.pm index bdd027890..fe92cfdd3 100644 --- a/lib/WebGUI/Operation/Root.pm +++ b/lib/WebGUI/Operation/Root.pm @@ -40,7 +40,7 @@ sub www_listRoots { my ($output, $p, $sth, %data, @row, $i); $output = helpIcon("root manage"); $output .= '

'.WebGUI::International::get(408).'

'; - $sth = WebGUI::SQL->read("select * from page where title<>'Reserved' and parentId=0 order by title"); + $sth = WebGUI::SQL->read("select * from page where title<>'Reserved' and parentId='0' order by title"); while (%data = $sth->hash) { $row[$i] = '' .deleteIcon('op=deletePage',$data{urlizedTitle})