Adding check for use of ip restrictions before warning (#134)

* Adding check for use of ip restrictions before warning about bootstrap.php not being included in config.php

* Replacing reference to same class with self
This commit is contained in:
adamlynam-catalyst
2018-10-03 15:22:31 +13:00
committed by Dan Marsden
parent b3917b7b63
commit 5aaf0ddeda

View File

@@ -330,7 +330,7 @@ EOT;
$message = [];
if (!isset($CFG->auth_outage_bootstrap_loaded) || !$CFG->auth_outage_bootstrap_loaded) {
if (trim(self::get_config()->allowedips) != '' && (!isset($CFG->auth_outage_bootstrap_loaded) || !$CFG->auth_outage_bootstrap_loaded)) {
$message[] = get_string('configurationwarning', 'auth_outage');
}