Permalink
Browse files

fixes a bug in resource_get_physical_file(...) when making a Resource…

…Document object.
  • Loading branch information...
1 parent b0c3d06 commit 2f33e8f03197cae43a900c5215d671b02534ecb3 diml committed Oct 7, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 search/documents/resource_document.php
@@ -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);

0 comments on commit 2f33e8f

Please sign in to comment.