We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 844bd5b commit 5abda7eCopy full SHA for 5abda7e
lib.php
@@ -63,10 +63,11 @@ function search_elastic_extend_navigation_user() {
63
function search_elastic_status_checks(): array {
64
// If elastic isn't the selected engine or global search is off, do not register the check at all.
65
if (
66
- !\core_search\manager::is_global_search_enabled() ||
67
- (isset($CFG->searchengine) && $CFG->searchengine !== 'elastic')
+ \core_search\manager::is_global_search_enabled() &&
+ isset($CFG->searchengine) &&
68
+ $CFG->searchengine == 'elastic'
69
) {
- return [];
70
+ return [new \search_elastic\check\server_ready_check()];
71
}
- return [new \search_elastic\check\server_ready_check()];
72
+ return [];
73
0 commit comments