@@ -148,14 +148,7 @@ sub db_get_document_object { | |||
ON p.id = dp.pageId | |||
WHERE dp.documentId = ?", $id); | |||
while(my $hash = $q->fetchrow_hashref()) { | |||
my $clean = { }; | |||
foreach my $name ( keys %{$hash} ) { | |||
if ( $name =~ /^p\.(.*)/ ) { | |||
my $newname = $1; | |||
$clean->{$newname} = $hash->{$name}; | |||
} | |||
} | |||
push @pages, $clean; push @pageids, $clean->{id}; | |||
push @pages, $hash; push @pageids, $hash->{id}; | |||
} | |||
$q = sqlquery($dbh, " |