From 92f1ccf9bd4d862b1377de895269dd771901c320 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Thu, 10 Oct 2019 13:02:44 +0200 Subject: [PATCH] typo fix --- app/class/AutomationManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/class/AutomationManager.php b/app/class/AutomationManager.php index 76d7935..e57f359 100644 --- a/app/class/AutomationManager.php +++ b/app/class/AutomationManager.php @@ -68,7 +68,7 @@ class AutomationManager{ if (time() > $value && $automation['executed'] == 0){ $run = true; - } else if (time() < $value && $automation['executed'] = 1) { //recovery realowing of automation + } else if (time() < $value && $automation['executed'] == 1) { //recovery realowing of automation $restart = true; } @@ -115,6 +115,7 @@ class AutomationManager{ $subscribers = NotificationManager::getSubscription(); $i = 0; + foreach ($subscribers as $key => $subscriber) { $logManager->write("[NOTIFICATION] SENDING NOTIFICATION TO" . $subscriber['id'] . " was executed" . $i); $title = 'Automatization '.$automation['name']." was just executed";