@@ -371,7 +371,7 @@ sub api_v1_GET_documents { | |||
$qs->{pageSize} * $qs->{pageIndex}, | |||
$qs->{pageSize}); | |||
while(my ($id) = $q->fetchrow_array()) { | |||
my ($code, $ct, $body) = db_get_document_object($id); | |||
my ($code, $hdr, $ct, $body) = db_get_document_object($id); | |||
push @out, $body; | |||
} | |||