Browse Source

misunderstanding :P

master
Pascal Gloor 5 years ago
parent
commit
d31863ad46
1 changed files with 1 additions and 8 deletions
  1. 1
    8
      cgi/autodoc.fcgi

+ 1
- 8
cgi/autodoc.fcgi View File

ON p.id = dp.pageId ON p.id = dp.pageId
WHERE dp.documentId = ?", $id); WHERE dp.documentId = ?", $id);
while(my $hash = $q->fetchrow_hashref()) { 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, " $q = sqlquery($dbh, "

Loading…
Cancel
Save