mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-56020 search: Adapt code to new style and add tests
This commit is contained in:
parent
49e589445d
commit
f94e1ef3c9
9 changed files with 321 additions and 314 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue