Skip to content

Commit

Permalink
Merge branch 'MDL-61281_34' of git://github.com/dmonllao/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_34_STABLE
  • Loading branch information
stronk7 authored and snake committed Feb 1, 2018
2 parents 60af40c + 512f9e2 commit ed21686
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion search/engine/solr/classes/engine.php
Expand Up @@ -231,7 +231,9 @@ protected function get_response_counts($response) {
} 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);
Expand Down

0 comments on commit ed21686

Please sign in to comment.