diff --git a/lib/Cron/Workers/StatsNotifications/AutomatedEmails.php b/lib/Cron/Workers/StatsNotifications/AutomatedEmails.php index 0ebafb179c..dc43cb898c 100644 --- a/lib/Cron/Workers/StatsNotifications/AutomatedEmails.php +++ b/lib/Cron/Workers/StatsNotifications/AutomatedEmails.php @@ -110,7 +110,7 @@ class AutomatedEmails extends SimpleWorker { $newsletter ->withSendingQueue() ->withTotalSent() - ->withStatistics($this->woocommerce_helper, new FeaturesController()); // TODO this is here temporarily until https://github.com/mailpoet/mailpoet/pull/2157 is merged after that we can remove the second argument + ->withStatistics($this->woocommerce_helper); } $result = []; foreach ($newsletters as $newsletter) { diff --git a/lib/Features/FeatureFlagsRepository.php b/lib/Features/FeatureFlagsRepository.php index 9430b077ec..2db9d2f1be 100644 --- a/lib/Features/FeatureFlagsRepository.php +++ b/lib/Features/FeatureFlagsRepository.php @@ -33,6 +33,7 @@ class FeatureFlagsRepository extends Repository { $feature_flag = new FeatureFlagEntity($data['name']); $this->persist($feature_flag); } + if (array_key_exists('value', $data)) { $feature_flag->setValue($data['value']); }