Merge branch 'MDL-61281_34' of git://github.com/dmonllao/moodle into MOODLE_34_STABLE

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