Skip to content

Commit

Permalink
Merge branch 'MDL-69477' of https://github.com/stronk7/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdef committed Aug 18, 2020
2 parents 7995d72 + e45ecaa commit 63364b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/settings/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
global $CFG;

// Check nobody's setting the indexing and query-only server to the same one.
if ($CFG->searchenginequeryonly === $value) {
if (isset($CFG->searchenginequeryonly) && $CFG->searchenginequeryonly === $value) {
return get_string('searchenginequeryonlysame', 'admin');
} else {
return '';
Expand Down Expand Up @@ -625,7 +625,7 @@
global $CFG;

// Check nobody's setting the indexing and query-only server to the same one.
if ($CFG->searchengine === $value) {
if (isset($CFG->searchengine) && $CFG->searchengine === $value) {
return get_string('searchenginequeryonlysame', 'admin');
} else {
return '';
Expand Down

0 comments on commit 63364b9

Please sign in to comment.