fixed SQL quoting for parentId. This fixes SF bug 1041937

This commit is contained in:
Colin Kuskie 2004-10-09 06:23:27 +00:00
parent a3e244086e
commit aad93e46e3

View file

@ -40,7 +40,7 @@ sub www_listRoots {
my ($output, $p, $sth, %data, @row, $i);
$output = helpIcon("root manage");
$output .= '<h1>'.WebGUI::International::get(408).'</h1>';
$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] = '<tr><td valign="top" class="tableData">'
.deleteIcon('op=deletePage',$data{urlizedTitle})