mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-69477_310' of https://github.com/stronk7/moodle into MOODLE_310_STABLE
This commit is contained in:
commit
b81952a23d
1 changed files with 2 additions and 2 deletions
|
@ -555,7 +555,7 @@ if ($hassiteconfig) {
|
|||
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 '';
|
||||
|
@ -625,7 +625,7 @@ if ($hassiteconfig) {
|
|||
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 '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue