From: Michael Vogel Date: Sat, 17 Oct 2020 13:54:52 +0000 (+0200) Subject: Update src/Core/Worker.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c0db7546ba59465c1dc6af1be00efe7677ced4b;p=friendica.git Update src/Core/Worker.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 9ab061baac..09cf14e5af 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -1430,10 +1430,10 @@ class Worker $execute = !(($current > $end) && ($current < $start)); } - if (!$execute) { - Logger::info('We are outside the maintenance window', ['current' => date('H:i:s', $current), 'start' => date('H:i:s', $start), 'end' => date('H:i:s', $end)]); - } else { + if ($execute) { Logger::info('We are inside the maintenance window', ['current' => date('H:i:s', $current), 'start' => date('H:i:s', $start), 'end' => date('H:i:s', $end)]); + } else { + Logger::info('We are outside the maintenance window', ['current' => date('H:i:s', $current), 'start' => date('H:i:s', $start), 'end' => date('H:i:s', $end)]); } return $execute;