mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9782] Board disable radio set on when server load high
PHPBB3-9782
This commit is contained in:
parent
25c579c00d
commit
932b35ab7a
1 changed files with 1 additions and 1 deletions
|
@ -1831,7 +1831,7 @@ class user extends session
|
||||||
// Is load exceeded?
|
// Is load exceeded?
|
||||||
if ($config['limit_load'] && $this->load !== false)
|
if ($config['limit_load'] && $this->load !== false)
|
||||||
{
|
{
|
||||||
if ($this->load > floatval($config['limit_load']) && !defined('IN_LOGIN'))
|
if ($this->load > floatval($config['limit_load']) && !defined('IN_LOGIN') && !defined('IN_ADMIN'))
|
||||||
{
|
{
|
||||||
// Set board disabled to true to let the admins/mods get the proper notification
|
// Set board disabled to true to let the admins/mods get the proper notification
|
||||||
$config['board_disable'] = '1';
|
$config['board_disable'] = '1';
|
||||||
|
|
Loading…
Add table
Reference in a new issue