mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-01 04:40:45 +09:00
Cleanly handle maintenance mode not being configured
This commit is contained in:
1 parent
d66751d24d
commit
38cb5de32c
1 file changed
+2
-1
@@ -345,7 +345,8 @@ class Box_App
|
||||
*
|
||||
* @since 4.22.0
|
||||
*/
|
||||
if (true === $this->di['config']['maintenance_mode']['enabled']) {
|
||||
$maintmode = isset($this->di['config']['maintenance_mode']) ? $this->di['config']['maintenance_mode']['enabled'] : false;
|
||||
if ($maintmode) {
|
||||
// Check the allowlists
|
||||
if ($this->checkAdminPrefix() && $this->checkAllowedURLs() && $this->checkAllowedIPs()) {
|
||||
// Set response code to 503.
|
||||
|
||||
Reference in new issue
Block a user