mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +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;
|
global $CFG;
|
||||||
|
|
||||||
// Check nobody's setting the indexing and query-only server to the same one.
|
// 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');
|
return get_string('searchenginequeryonlysame', 'admin');
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
@ -625,7 +625,7 @@ if ($hassiteconfig) {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
// Check nobody's setting the indexing and query-only server to the same one.
|
// 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');
|
return get_string('searchenginequeryonlysame', 'admin');
|
||||||
} else {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue