Merge branch 'MDL-61281_master' of git://github.com/dmonllao/moodle
This commit is contained in:
@@ -243,7 +243,9 @@ class engine extends \core_search\engine {
|
||||
} else if (isset($response->response->numFound)) {
|
||||
// Get the number of results for standard queries.
|
||||
$found = $response->response->numFound;
|
||||
$included = count($response->response->docs);
|
||||
if ($found > 0 && is_array($response->response->docs)) {
|
||||
$included = count($response->response->docs);
|
||||
}
|
||||
}
|
||||
|
||||
return array($included, $found);
|
||||
|
||||
Reference in New Issue
Block a user