From 628770b6c1fc8b12fb66a7f3bedb650a51b61125 Mon Sep 17 00:00:00 2001 From: the-djmaze <3752035+the-djmaze@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:06:29 +0200 Subject: [PATCH] Resolve #1085 --- snappymail/v/0.0.0/app/libraries/RainLoop/Service.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php index 60a6e28c0..ace1232b1 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php @@ -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;