]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Core/Worker.php
authorMichael Vogel <icarus@dabo.de>
Sat, 17 Oct 2020 13:54:52 +0000 (15:54 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Oct 2020 13:54:52 +0000 (15:54 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Core/Worker.php

index 9ab061baace6276526644390331fb1a5320708c0..09cf14e5af4e5afb1d6d039c78469f075a139f87 100644 (file)
@@ -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;