diff --git a/lib/WebGUI/Persistent/Tree.pm b/lib/WebGUI/Persistent/Tree.pm index 384d3c6b4..2aa1291f4 100644 --- a/lib/WebGUI/Persistent/Tree.pm +++ b/lib/WebGUI/Persistent/Tree.pm @@ -344,7 +344,7 @@ sub motherSelfAndSisters { $class->keyColumn()." != $keyColumnId", ] ); - if ($class->useDummyRoot() && $parentId == 0) { + if ($class->useDummyRoot() && $parentId eq '0') { push @objs, $class->dummyRoot(); } return ($self,@objs); diff --git a/lib/WebGUI/Wobject/IndexedSearch.pm b/lib/WebGUI/Wobject/IndexedSearch.pm index a5028f7e2..3dd35c6d3 100644 --- a/lib/WebGUI/Wobject/IndexedSearch.pm +++ b/lib/WebGUI/Wobject/IndexedSearch.pm @@ -133,7 +133,7 @@ sub www_edit { # Page roots %searchRoot = ( 'any'=>WebGUI::International::get(15,$self->get("namespace")), $session{page}{pageId}=>WebGUI::International::get(4,$self->get("namespace")), - WebGUI::SQL->buildHash("select pageId,title from page where parentId=0 and isSystem<>1 order by title") + WebGUI::SQL->buildHash("select pageId,title from page where parentId='0' and isSystem<>'1' order by title") ); $properties->checkList ( -name=>'searchRoot', -options=>\%searchRoot,