diff --git a/src/Notifications/StructureUnderAttack.php b/src/Notifications/StructureUnderAttack.php index 6bd8ce1..f69c731 100644 --- a/src/Notifications/StructureUnderAttack.php +++ b/src/Notifications/StructureUnderAttack.php @@ -111,7 +111,7 @@ public function toSlack($notifiable) }) ->field(function ($field) { - if (! array_key_exists('allianceID', $this->content)) + if (! array_key_exists('allianceID', $this->content) || is_null($this->content['allianceID'])) return; $field->title('Alliance')