MDL-56020 search: Adapt code to new style and add tests

This commit is contained in:
Juan Leyva 2023-04-19 15:00:50 +02:00
parent 49e589445d
commit f94e1ef3c9
9 changed files with 321 additions and 314 deletions

View file

@ -323,7 +323,7 @@ class engine extends \core_search\engine {
* @return int
*/
public function get_query_total_count() {
if (!is_null($this->totalresults)) {
if (is_null($this->totalresults)) {
// This is a just in case as we count total results in execute_query.
return \core_search\manager::MAX_RESULTS;
}