mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-30 19:41:46 +08:00
Resolve #261
This commit is contained in:
parent
4f2f2dd485
commit
54f48fbe4d
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ if (defined('APP_VERSION_ROOT_PATH')) {
|
|||
|
||||
if (function_exists('sys_getloadavg')) {
|
||||
$load = sys_getloadavg();
|
||||
if ($load[0] > 95) {
|
||||
if ($load && $load[0] > 95) {
|
||||
header('HTTP/1.1 503 Service Unavailable');
|
||||
header('Retry-After: 120');
|
||||
exit('Mailserver too busy. Please try again later.');
|
||||
|
|
Loading…
Reference in a new issue