Merge branch 'MDL-61281_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2018-02-01 10:33:16 +08:00
committed by Jake Dallimore
+3 -1
View File
@@ -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);