Skip to content

Commit

Permalink
fixes a bug in resource_get_physical_file(...) when making a Resource…
Browse files Browse the repository at this point in the history
…Document object.
  • Loading branch information
diml committed Oct 7, 2007
1 parent b0c3d06 commit 2f33e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/documents/resource_document.php
Expand Up @@ -187,7 +187,7 @@ function resource_get_physical_file(&$resource, $context_id, $getsingle, &$docum
$resource->alltext = $function_name($resource);
if (!empty($resource->alltext)){
if ($getsingle){
return new ResourceSearchDocument(get_object_vars($resource));
return new ResourceSearchDocument(get_object_vars($resource), $context_id);
}
else{
$documents[] = new ResourceSearchDocument(get_object_vars($resource), $context_id);
Expand Down

0 comments on commit 2f33e8f

Please sign in to comment.