This commit is contained in:
the-djmaze 2023-04-13 23:06:29 +02:00 committed by GitHub
parent 2adccdbaf3
commit 628770b6c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;