mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-29 11:01:34 +08:00
Resolve #1085
This commit is contained in:
parent
2adccdbaf3
commit
628770b6c1
1 changed files with 3 additions and 2 deletions
|
@ -10,8 +10,9 @@ abstract class Service
|
|||
public static function Handle() : bool
|
||||
{
|
||||
static $bOne = null;
|
||||
if (null === $bOne && false === \stripos(\php_sapi_name(), 'cli')) {
|
||||
$bOne = static::RunResult();
|
||||
if (null === $bOne) {
|
||||
$bOne = false === \stripos(\php_sapi_name(), 'cli')
|
||||
&& static::RunResult();
|
||||
}
|
||||
|
||||
return $bOne;
|
||||
|
|
Loading…
Reference in a new issue