From 732c590fdfe7455532766a3987fed8ba2ea66167 Mon Sep 17 00:00:00 2001 From: heathdutton Date: Wed, 30 May 2018 10:58:23 -0400 Subject: [PATCH] Prevent error if integration is not configured/enabled. --- Model/HealthModel.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Model/HealthModel.php b/Model/HealthModel.php index 78583a5..1db5045 100644 --- a/Model/HealthModel.php +++ b/Model/HealthModel.php @@ -179,7 +179,10 @@ public function getIncidents() */ public function reportIncidents(OutputInterface $output = null) { - if ($this->integration && $this->incidents && !empty($this->settings['statuspage_component_id'])) { + if (!$this->integration) { + return; + } + if ($this->incidents && !empty($this->settings['statuspage_component_id'])) { $name = 'Degraded Performance'; $body = []; foreach ($this->incidents as $campaignId => $campaign) {