mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
On installation (or also phpunit/behat unit) some CFG variables were being used (on setting validation) before being set. So this commit just verifies they are set before using them. Note that, strictly speaking, only one of them ($CFG->searchenginequeryonly) required the extra check, but I think it's better to apply it to all them, as a reference and in case validations are run in any other order.